Posts: 60
Threads: 24
Joined: Jun 2012
Reputation:
0
08-24-2012, 10:59 AM
Hi All,
I have a 20 line code and a data table which contains 200 entries.
how can i synchronize my code so that Qtp works properly.
Thanks and Regards,
shweta
Posts: 424
Threads: 10
Joined: Aug 2011
Reputation:
0
08-24-2012, 12:16 PM
@Shweta,
That depends what are you trying to do. If you just want to input these values to some fields/Table in the application, you dont even require to use 20 lines of code. Just change the test run settings to run on all row.
Please let me know if i have misunderstood your query.
Regards,
Ankesh
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
08-24-2012, 01:55 PM
Hi,
What kind of issue u r facing?
Regards,
Sankalp
Posts: 60
Threads: 24
Joined: Jun 2012
Reputation:
0
08-24-2012, 02:10 PM
Basically i want to check whether all 170 categories give proper result or not.
screen shot attached.
Attached Files
Image(s)
Posts: 424
Threads: 10
Joined: Aug 2011
Reputation:
0
08-24-2012, 02:17 PM
goto File->Settings->Run->Select run on all rows.
Just run the script, it will work fine.
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
08-24-2012, 02:32 PM
Hi,
U can count the number of rows in data table and use the for loop to navigate each line and verify the output as per the input record.
Let me know in case of any help required.
Regards,
Sankalp
Posts: 424
Threads: 10
Joined: Aug 2011
Reputation:
0
08-24-2012, 02:42 PM
@sshukla12
Why to develope a code when we already have a feture in QTP for this?
Developing a code will add up development time + Execution time. I dont think tahts a gerat idea.
Regards,
Ankesh
Posts: 60
Threads: 24
Joined: Jun 2012
Reputation:
0
08-24-2012, 02:52 PM
I have already tried this option.
goto File->Settings->Run->Select run on all rows
currently its on select run on all rows.
Its running properly till 10th row sometimes 8th row.
and then it fails or gives error.
Thanks,
Sia
Posts: 424
Threads: 10
Joined: Aug 2011
Reputation:
0
08-24-2012, 03:10 PM
What is the error that you are receiving?
Regards,
Ankesh
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
08-24-2012, 03:11 PM
Hi Ankesh
It totally depends upon the approach u r adopting. If in each script u have taken the option to run on single row then its not a good practice to change the option in some scripts.
But totally depends upon the individual to which approach he/she is going fwd.
Hope u get the point.
Regards,
Sankalp