Interview Questions   Tutorials   Discussions   Programs   Videos   

WinRunner - Write some of the important functions in data driven test(ddt)?




224
views
asked mar August 10, 2014 05:24 AM  

Write some of the important functions in data driven test(ddt)?


           

1 Answers



 
answered By shyam   0  
QTest Lib supports adding test data to a test function. All we need is to add another private slot to our test class.
We define the two elements of our test table using the QTest::add Column() function.
A test string, and the expected result of applying the QString::to Upper() function to that string.
Then we add some data to the table using the QTest::new Row() function. Each set of data will become a separate row in the test table.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert