question

asavas avatar image
asavas asked bhavani.geepalem answered

Is there a way to conditionally include steps in the Test Report from a variable

Is there a way to conditionally include steps in the Test Report from a variable.

For example I want to just specify a debug mode where all steps are in the test report vs a normal mode where only selected steps are in the test report.

Like in normal mode I may not want the steps in a quick call in the test report, but in debug mode I do.

iTestiTest Enterpriseresults and reportingiTest Runtime (itestrt)test reports
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

drakesh avatar image
drakesh answered amichaels commented

By unchecking this option "Include this step and its children in test reports" in step of Step Properties we can exclude this step in test reports.

step.jpg

Correct me if my understanding is not correct.


step.jpg (53.1 KiB)
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amichaels avatar image amichaels ♦ commented ·

I think the OP is asking if it is possible to toggle the reporting of a step or set of steps by inspecting a variable. e.g. "set includeSteps 1" would tell iTest to include the step in the test report.

0 Likes 0 ·
bhavani.geepalem avatar image
bhavani.geepalem answered

I believe, it is not possible to use variables to include the step in the test report.

Where as, we can use the below options to include the selected steps and all the steps in test report.

To include only the selected steps in Test Report: As drakesh said, if we want to include only the selected steps in test report, then uncheck the remaining steps by using the option "Include this step and its children in test reports" in test case step properties.

To include all the steps in Test Report: We can include all the steps in test report by ignoring the "include this step and its children in "Test Report" " option of test case step.

Go to Windows -> Preferences -> Spirent -> General -> Execution -> enable the check box "Include all steps in test report (ignore the settings from the step)".


selectedstep.jpg (50.8 KiB)
allsteps.jpg (121.1 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.