I have a robot test table and am running pybot. The robot/pybot calls a python function. Can I pass the test number to my python function ?
I realize I can do this by appending a number to my robot test table, but its painful to do this because its a huge table with formatting. Is there another way?
The tests are like (shorter form of the actual test table, its too big to paste)
=================================================
Test Case Action Arguments
=================================================
Test connection mytest.setup ${Bucket}
Verify files mytest.verify ${filename}
Search logs mytest.searchlog ${string_to_search}
==================================================
So when I call mytest.searchlog() in python (mytest is my python file), how do I tell it that this is the 3rd test case?
I am running it with pybot
pybot --variable Bucket:mybucket ..... testfile.rst