vmi / selenese-runner-java

Selenium IDE native format (selenese and side) interpreter.
Other
140 stars 82 forks source link

add status attribute to testcase xml output #254

Open chickenpickin opened 7 years ago

chickenpickin commented 7 years ago

is it possible to add the status code attribute to the test case xml in addition to the name,time, and timestamp attributes that are already there?

ideally this would display the same status codes (0 through 6) for the overall run

vmi commented 7 years ago

Hi,

I apologize for replying late.

I think that I can add that feature. What kind of attribute names do you think is good?

ideally this would display the same status codes (0 through 6) for the overall run

Does this mean setting a failure status code for all test cases if one test case fails?

I think it is better to store the final result in the testsuite tag and the individual result in the testcase tag.

chickenpickin commented 7 years ago

Hi,

Thanks for looking into this.

The testsuite tag already contains number of failures, errors, etc. and seems OK to me as is. What I am hoping for is a modification to the testcase tag.

Today, when there is an error the testcase tag looks like this: <testcase name="LoadLandingPage" time="0.156" timestamp="2017-09-05T15:02:18-04:00"

if it could be modified to contain just the attribute status with the code like this: <testcase name="LoadLandingPage" time="0.156" status="4" timestamp="2017-09-05T15:02:18-04:00">

That would really help.

Thanks.