Can we use Virtual Objects in Discriptive Programming?

Answers were Sorted based on User's Feedback



Can we use Virtual Objects in Discriptive Programming?..

Answer / siraj

no we can't use virtual object in dp.

Is This Answer Correct ?    4 Yes 2 No

Can we use Virtual Objects in Discriptive Programming?..

Answer / uday

Yes, we can define virtual objects using Descriptive
Programming.

You should use x, y, width and height properties to define
virtual objects.

The script will look like below:
window("Paint").WinObject("NetUIHWND").virtualobject("x:=256","y:=66","width:=22","height:=20").Click
13,11

Is This Answer Correct ?    2 Yes 0 No

Can we use Virtual Objects in Discriptive Programming?..

Answer / king

Can u plz provide code how to use Virtual Objects in DP.

Is This Answer Correct ?    2 Yes 3 No

Can we use Virtual Objects in Discriptive Programming?..

Answer / vaaniraj

yes, we can add the virtual objects in descriptive program.
once making the virtual objects to qtp objects , we can use
descriptive programming for that object

Is This Answer Correct ?    1 Yes 2 No

Can we use Virtual Objects in Discriptive Programming?..

Answer / guest

yes

Is This Answer Correct ?    3 Yes 7 No

Post New Answer

More QTP Interview Questions

when we right click on the desktop of any operating system we find a menu , consisting of refresh,edit,open,paste and cut etc... how to load the object and object properties of that menu in QTP

3 Answers   iFlex,


can u explain relative path architecture framework in qtp?

0 Answers   Mindlance,


can we call a test in another test?

3 Answers   iFocus,


1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?

0 Answers  


Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office they want to schedule individual scripts of QTP so that it can run unattended during night time, Please help me how to do that. 2. what is the use of silent test run in qtp can I schedule the scripts in Silent runner, Please explain. 3.I retrieved data from the database using output value -> Database output value. the result of the query for eg is 5 rows, iam able to output the first row by selecting the cols and adding it to output, but am not able to do it for the rest of the rows. please tell me how to do it. Sorry for posting so many qns, am not able to find answ to any of the above in any websites, hoping that someone would really help me with these here, please help me. awaiting for ur immediate revert. Priya

5 Answers  






Explain runtime dynamic settings?

0 Answers  


How to find the OS name by using QTP script?

2 Answers   IBM, Tech Mahindra,


How good are you in writing VBscript code for your application? Can you completely write VBscrit for your project with out using recording mode in QTP?

3 Answers   CTS,


Hi Friends, How to trap an error message on Web page through QTP. Example:- When I put wrong user id or Password on a web page, I get the error message. So when I add the error object in Reposatory, every time it shows as Login Failed Object exist, eventhough using corret login details. And if I do the same without adding the object it shows as object not found. This might be because while recording QTP takes every new page as _1 _2 _3 and so on. as below. Browser("XXXXX").Page("XXXXX_1"). >>login Browser("XXXXX").Page("XXXXX_2"). >>Inbox Browser("XXXXX").Page("XXXXX_3"). >>Sent Items I used below code. Browser("XXXXX").Page("XXXXX").WebEdit("firstname").Set strFN Browser("XXXXX").Page("XXXXX").WebEdit("lastname").Set strLN Browser("XXXXX").Page("XXXXX").WebEdit("userid").Set strUserID Browser("XXXXX").Page("XXXXX").WebEdit("password").Set strPass Browser("XXXXX").Page("XXXXX").WebButton("Login >").Click If Browser("XXXXX").Page("XXXXX_2").Image ("msg_icon_error").Exist 5 Then Reporter.ReportEvent micFail, "XXXXX", "Login Failed!" ExitRun (It shows login failed ever after login is passed. Else Reporter.ReportEvent micPass, "XXXXX", "Login Successful!" End If Please find out a way for me here, and provide me with the correct code. Thanks in Advance.

1 Answers  


WHAT IS ETL TESTING.......

2 Answers  


What is difference between function and procedure?

41 Answers   HCL, IBM, iGate, Infosys, TCS, Veritas, Wipro,


When using descriptive programming?

0 Answers  


Categories