clarification on datatable-read next - 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: clarification on datatable-read next (/Thread-clarification-on-datatable-read-next) |
clarification on datatable-read next - cocojava - 10-16-2010 QTP10 XP IE8 this is a question of 'WHY' is it performing like this. I stated it in an ealier thread; but never understood. Here is my current test: Action1 Code: Browser("Login").Page("My company").Check CheckPoint("My company_6") Action2 Code: Browser("My company").Page("My company").Check CheckPoint("My company") The program comes to the 'images screen' inputs the first entry from the global tableA 'submits it- then returns to "my company_6 or _7 proceeds to "track" and takes the same pro (as the two table are identical) submits and returns back to 'MY company' then 'images where row two of table is used. Question: Is this suppose to happen (Im new at this) or is there a change I need to make somewhere, where the ACTION1 will complete BEFORE the next action2 is started? RE: clarification on datatable-read next - PrabhatN - 10-18-2010 Hi cocojava, Can you state your problem with a clear explanation of what you want to do, what you did, what was the expected behaviour and what was the actual one ? RE: clarification on datatable-read next - cocojava - 10-18-2010 The explanation of what I did was already listed above. That was the actual code. The 'actual' behavorior was also listed; but I will attempt to make clearer. The 'expected' behavior is for one action to go through the datatable row by row, THEN go on to the next action AFTER the first has completed entirely. Is there something I need to change somewhere in the properties or something perhaps? Accodinging to the code above THIS IS the Actual: The program comes to the 'Browser("Login").Page("My company").Link("Images")' screen Inputs rowA from the global datatableA Browser("Login").Page("My company").Link("Images").Click Results are seen from that input-Browser("Login").Page("My company_4").Check CheckPoint("My company_8") Next, a button appears on that screen to perform another lookup to use a new number (I would expect Row two from the datatable) Browser("Login").Page("My company_4").WebButton("Back to Imaging").Click INSTEAD, of performing the NEXT ROW in the datatable and completly ALL entries of that datatable...'Action2' is begun, steps completed in 'Action2' and then returned to 'Action1' row two of the datatable and so on. RE: clarification on datatable-read next - manishbhalshankar - 12-14-2010 Hi, From Run Properties select Run one iteration only. Then use for loop to execute your actions for the desired no of rows. RE: clarification on datatable-read next - leninraj - 12-14-2010 Hi, you can also use local correponding data sheet of the actions & set the Action call properties to run on all rows instead of using global datasheet. Regards Lenin. |