I neet to store the value of a variable in the test case TC1 and use it in TC2 on the same level.
I'm trying storing the value in an unbound variable, but it's non visible in the other TC.
I've tried using Data Source, binding 2 vars (1 for TC1 and 1 for TC2) to its row, but it not works.
My last try is using this code:
Code: Select all
[language=csharp]
NumeroPolizza = "XYZ";
var dataConn = DataSources.Get("myDataSource");
dataConn.Rows.Add(new string[] { NumeroPolizza });
dataConn.Store();
[/language]
The structure of my Test case is:
GENERAL_TEST_CASE
-----TC1
----------RECORDING1
-----TC2
----------RECORDING2
Thank you