Perfect Data Binding Workaround, Which Allows To Work With Any Data Easily

I UPDATED IT EVEN MORE :rofl:

I discovered, that there is @BeforeTestDataBindToTestCase method in TestListener.

So here is my TestListener now:

But be aware, that this method @BeforeTestDataBindToTestCase will run only if you run or debug your TestCase from TestSuite. If you run or debug just a single TestCase, this method won’t run at all…

And here is updated data file:
Data.zip (2.4 KB)

Now you don’t need to put anything to global variables, and you can use your variables in TestCase absolutely normally, like this:

So now it works very well, to summarize it, all you have to do, is to put that Data file to your keywords and create that @BeforeTestDataBindToTestCase method in TestListener. You this only once at the beginning of a project, and then you just write your data types to that Description column and use your variables in a normal way :slight_smile:

1 Like