10-16-2010, 01:13 AM
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
Action2
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?
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")
Browser("Login").Page("My company").Link("Images").Click
Browser("Login").Page("My company_4").Check CheckPoint("My company_7")
Browser("Login").Page("My company_4").WebEdit("ctl00$cContent$Right$txtPro").Set DataTable("A", dtGlobalSheet)
Browser("Login").Page("My company_4").WebButton("Submit").Click
Browser("Login").Page("My company_4").Check CheckPoint("My company_8")
Browser("Login").Page("My company_4").WebButton("Back to Imaging").Click
Action2
Code:
Browser("My company").Page("My company").Check CheckPoint("My company")
Browser("My company").Page("My company").Link("Track").Click
Browser("My company").Page("My company_2").Check CheckPoint("My company_2")
Browser("My company").Page("My company_2").WebEdit("ctl00$cContent$Right$tbRow0").Set DataTable("B", dtGlobalSheet)
Browser("My company").Page("My company_2").WebButton("Submit").Click
Browser("My company").Page("My company_2").Check CheckPoint("My company_3")
Browser("My company").Page("My company_2").WebButton("Clear").Click
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?