Micro Focus QTP (UFT) Forums
synchronization - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: synchronization (/Thread-synchronization)



synchronization - sia sharma - 08-24-2012

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


RE: synchronization - Ankesh - 08-24-2012

@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


RE: synchronization - sshukla12 - 08-24-2012

Hi,
What kind of issue u r facing?

Regards,
Sankalp


RE: synchronization - sia sharma - 08-24-2012

Basically i want to check whether all 170 categories give proper result or not.

screen shot attached.


RE: synchronization - Ankesh - 08-24-2012

goto File->Settings->Run->Select run on all rows.

Just run the script, it will work fine.


RE: synchronization - sshukla12 - 08-24-2012

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


RE: synchronization - Ankesh - 08-24-2012

@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


RE: synchronization - sia sharma - 08-24-2012

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


RE: synchronization - Ankesh - 08-24-2012

What is the error that you are receiving?

Regards,
Ankesh


RE: synchronization - sshukla12 - 08-24-2012

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