Write data into internal Test data at runtime during test execution

I want to get a value from an object during the test and store it to an Internal test data, similar to what I found here:

But I do not want to create an XLS or CSV, I want to store on Internal Data.


I had a same requirement but I wasn’t able to find a way. I opted for SQL Database which is very useful.

I would love to see such methods, not only for Internal Data, but xls, csv also.

TestDataFactory.findTestData('Data Files/InternalData').setValue(2,2,"somevalue")
TestDataFactory.findTestData('Data Files/InternalData').Value(2,2)  = "somevalue"

2nd is more like working with query in DBData.

1 Like