Interview Questions (Part-3)
1. What are disadvantages of Shared Object Repository?
2. Please explain what all can be saved in Resource’s tab of ALM/QC?
3. How we can load OR at Run time?
4. Explain the process to work with Batch files in QTP?
5. What are the types of Descriptive programming (DP)? Where we can use them?
One reply on “UFT/QTP Interview Questions (Part-3)”
Hi Team,
Can anyone correct my code. I want to use descriptive
programming with regular expression
SystemUtil.Run "C:Program FilesInternet Explorer
iexplore.exe","www.facebook.com"
Browser("creationtime:=0").page("title:=.*").WebEdit
("name:=email","html tag:=INPUT").Set "abc@gmail.com"
Browser("creationtime:=0").page("title:=.*").WebEdit
("name:=pass","html tag:=INPUT").Set "abcdef123"
Browser("creationtime:=0").page("title:=.*").WebButton
("name:=Log In","type:=submit").Click
Browser("creationtime:=0").page("title:=.*").Link
("name:=Sanjeev","inner text:=Sanjeev").Click
Browser("creationtime:=0").page("title:=.*").sync
***** below code Friends Link is dynamically changing as
per user id, for me it is showing as Friends 165 (165 is
changing as per user ids) can anyone tell me how to use
regular expression".
I have tried below 2 methods:
1) Browser("creationtime:=0").page("title:=.*").Link
("text:=Friends.*","html tag:=A").Click
2)Set obj_desc = Description.Create
obj_desc("micclass").value="Link"
obj_desc("name").value="Friends .*"
obj_desc("name").RegularExpression = true
Also tried for false
obj_desc("text").value="Friends .*"
obj_desc("text").RegularExpression = true
Also tried for "false"
Browser("creationtime:=0").page("title:=.*").Link
(obj_desc).click
Browser("creationtime:=0").page("title:=.*").sync
but still its not working.Please correct me.