Best Practices for image naming, or how to use test variables


I would like to know how to create a “smart” file name for a screenshot. For instance,

If i have a global variable for the directory, I would like to do something like:

G_image_path + testSuite + testCase+testStep + .png

In the above example I don’t how to grab the testxxx variables. Is there documentation on how to find these values? Also, are there any other ways that you are using that are more robust compared to what I have above?