Need to modify test summary and few more attributes.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Need to modify test summary and few more attributes.

Rejish R
Hi, 

In my test status, under Pass and Fail, I am adding one more attributes as below. Now I want this attribute to be also showed in my test summary "Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 5.188 s <<< FAILURE! - in TestSuite".

switch (iTestResult.getStatus()){
    case ITestResult.SUCCESS: status = "Pass";
        System.out.println("in side pass Xfail attr is:"+ iTestResult.getAttribute("FAIL_WITH_CONDITION"));
        if (iTestResult.getAttribute("FAIL_WITH_CONDITION") != null){
            status = "Pass_With_Condition";
        }
        break;

    case ITestResult.FAILURE: status = "Failed";
        System.out.println("in side fail Xfail attr is:"+ iTestResult.getAttribute("FAIL_WITH_CONDITION"));
        if (iTestResult.getAttribute("FAIL_WITH_CONDITION") != null){
            status = "Fail_With_Condition";
        }
        break;

    case ITestResult.SKIP: status = "Skipped";
        break;

    }

Any pointers will be helpful.

Thanks in Advance!

Regards,
Rejish

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.