Is there a way to identify on which OS type my test is running?

Hi,

My requirement is while running my test I want to know on which OS my test is running so that depending on the OS I need to perform few steps. I don’t wanna use OS type again as a parameter.

Example:
If test is running on Mac execute 1-4 steps.
Else if the test is running on Windows execute 5-10 steps.
Else if the test is running on Linux execute 10-20 steps.

This topic was automatically closed after 180 days. New replies are no longer allowed.