Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does QTP supports to open same application multiple times!!!!!
#1
Not Solved
Hi,

My testcase is like this - I want to open the same application multiple times and do click on "Post" button from all the application one after other.

Can any one please help.

Assume i have opened 3 application -
Code:
SwfWindow("Sample Publisher (Named").SetTOProperty "index", 0
SwfWindow("Sample Publisher (Named").SetTOProperty "index", 1
SwfWindow("Sample Publisher (Named").SetTOProperty "index", 2
Here, i have used SetToProperty with index values to identify 3 same application. Till here my code work fine, it is identifying the application perfectly but when i try to click on Post button thru code it's not clicking onthe given application. The code looks like below:
Code:
SwfWindow("Sample Publisher (Named").SetTOProperty "index", 0
If SwfWindow("Sample Publisher (Named").Exist(0) then
    SwfWindow("Sample Publisher (Named").Activate
    SwfWindow("Sample Publisher (Named").SwfListView("listViewPublisher").Select "NGS.Infrastructure.SessionEvents.EnteringState"
SwfWindow("Sample Publisher (Named").SwfButton("PostEvent").Click
    wait(2)
End if
    SwfWindow("Sample Publisher (Named").SetTOProperty "index", 1
'    SwfWindow("Sample Publisher (Named").Activate
If  SwfWindow("Sample Publisher (Named").Exist(5) Then
    SwfWindow("Sample Publisher (Named").SwfListView("listViewPublisher").Select "NGS.Infrastructure.SessionEvents.ExitingState"
SwfWindow("Sample Publisher (Named").SwfButton("Post Event").SetTOProperty "index",1
SwfWindow("Sample Publisher (Named").SwfButton("PostEvent").Click
wait(2)
End If

   SwfWindow("Sample Publisher (Named").SetTOProperty "index", 2
SwfWindow("Sample Publisher (Named").Activate
If  SwfWindow("Sample Publisher (Named").Exist(5) Then
    SwfWindow("Sample Publisher (Named").SwfListView("listViewPublisher").Select "NGS.Infrastructure.ResourceEvents.Stage.StageMoved"
SwfWindow("Sample Publisher (Named").SwfButton("Post Event").Click
wait(2)
End If

Thanks,
Kiran
Reply


Messages In This Thread
Does QTP supports to open same application multiple times!!!!! - by pkiran169 - 03-26-2013, 08:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Action Response Times Slow kdunn 0 1,109 11-09-2018, 09:24 PM
Last Post: kdunn
  Check the word and get no. of times that word in the webpage Sandeep.san229 0 1,451 10-31-2018, 06:42 PM
Last Post: Sandeep.san229
  QTP/UFT - Storing Multiple Arrays In An Array Eitel13 0 1,806 07-17-2018, 04:37 PM
Last Post: Eitel13
  Open QTP using Driver Script shipu 1 3,035 02-26-2014, 12:21 PM
Last Post: supputuri
Sad QTP Script | how to get object of some open window just using its class type,Java sophia.sabir 1 8,873 08-07-2013, 01:26 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 1 Guest(s)