Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue in Descriptive(QTP) while using Https server
#1
Solved: 11 Years, 4 Months, 3 Weeks ago Exclamation 
Hi,

This is a issue which I faced while performing automation using QTP 9.2 for my project which is a web based application. Actually, I'm able to record and make a playback on the application and also I can go for scripting using the Object Repository and in both the cases it works fine. The problem is when I happen to click the Login link after giving the URL it leads to the https site, say for example my appln URL is http://abc.com and after giving the URL and clicking the GO button it navigates to the landing page where the Login link will be present. And to login to the appln when I click the Login link it navigates to the secured server, say for example https:// abc.com/login.

Now here, in this case I tried to do descriptive programing by identifying the object properties of user name and password of the appln using the object spy and when i try to run the script it throws an error saying the object's parent window cannot be recognized. Still I'm able to navigate to the page but could not able to access the objects in that even though I've given the right properties with the correct structure. Hope my doubt is clear to all.
Please suggest me......

Thanks in advance
zakir
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Does the https page launch as a pop-up window after clicking Login link? If yes, you need to include the visible property in parent objects. You can find the example in earlier posts.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Many thanks for your reply ankur. The https page does not launch as a pop-up window but as a normal window only. It gets recognized as browser when I use the object spy. And I did tried all ways to include the visible property as I mentioned in my previous post. I was really wondering what cud be wrong. But one thing is that, I was browsing in qtp forum abt this and one user had said that in case of https it is better to use name and innertext property while performing DP, but quite unfortunate, the appln in which i'm wrkng doesn't have the innertext property but shows the name property. May be even this can be an issue, still I wud be glad to get the exact reason for that.

thanks again
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
If the second browser window opens, QTP gets confused. So in order for QTP to recognize the second browser use CreationTime. CreationTime:=0 referrs to the first browser window and CreationTime:=1 referrs to the second and on and on. For example:
Code:
Browser("CreationTime:=1").Page("micClass:=Page").WebButton("name:=View Directory").click
will click on a View directory button in the second browser window.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 2,000 04-25-2019, 08:17 PM
Last Post: Ankur
  Exporting QTP runtime datatable to SQL server during SweetyChowdhury 1 3,293 05-10-2013, 03:41 AM
Last Post: sria123
  How to draw a line using QTP descriptive script? brijith04 2 3,805 03-11-2013, 07:01 AM
Last Post: basanth27
  How to read a unix flat file from a unix server using QTP vinayjames.b05 3 9,649 06-18-2012, 11:12 PM
Last Post: gunaseakaran
  Descriptive programming variable issue pooja7 5 4,711 02-29-2012, 04:08 PM
Last Post: simon_schreiner

Forum Jump:


Users browsing this thread: 1 Guest(s)