If u r using descriptive programming to identify the object
where do u write the script for those objects? do u write
it in the expertview? plz do answer its urgent thanks
advance.

Answers were Sorted based on User's Feedback



If u r using descriptive programming to identify the object where do u write the script for those ..

Answer / aparna

Yes u can write in the expert view like this:

Browser("Browser").Page("Page").WebEdit("Name:=txt_Name","html
tag:=INPUT").set "Test"

Is This Answer Correct ?    4 Yes 1 No

If u r using descriptive programming to identify the object where do u write the script for those ..

Answer / krishan kant sharma

You need to write script in Expert Mode.
For example you want to click on one button available on
Calculator:
' Open Calculator
Systemutil.Run "Calc"
'Click on Button 1-simplest code
Window("text:=Calculator").winbutton("text:=1").Click
'Close Calculator
systemutil.CloseDescendentProcesses

Is This Answer Correct ?    0 Yes 0 No

If u r using descriptive programming to identify the object where do u write the script for those ..

Answer / jas

No you cant write the descriptive programming in expert
view. Descriptive programming is written in keyword view
only

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More QTP Interview Questions

Is it possible to switch between recording modes during a test creation?

0 Answers  


can anybody give me the links for vb script material

1 Answers  


Hai anyone please "Explain about Framework in QTP?"

6 Answers  


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

0 Answers   TCS,


Give some brief idea about a) Active x check b) Alt property check c) Applet object check d) Frame object check e) Multimedia links check f) Server side image check g) Table object check

1 Answers   CTS,






hi is there any chance to change encoding the password

3 Answers  


How do I generate Test Results window using descriptive method ( run time ) after my test execution process? Please have a look of my below code. ========================================================= Dim qtApp Dim qtTest Dim qtResultsOpt Set qtApp = CreateObject("QuickTest.Application") qtApp.Launch qtApp.Visible = True qtApp.Options.Run.CaptureForTestResults = "Always" qtApp.Options.Run.RunMode = "Fast" qtApp.Options.Run.ViewResults = True qtApp.Open "C:\Automation\Example", True Set qtTest = qtApp.Test qtTest.Settings.Run.OnError = "NextStep" Set qtResultsOpt = CreateObject ("QuickTest.RunResultsOptions") qtResultsOpt.ResultsLocation = "C:\Automation\Example\Res1" qtTest.Run qtResultsOpt MsgBox qtTest.LastRunResults.Status qtTest.Close Set qtResultsOpt = Nothing Set qtTest = Nothing Set qtApp = Nothing ========================================================== This code is working fine, but Test Result window is not displaying after execution. Anybody can please help me regading the same. Thanks Akshaya Madali Capgemini India Pvt Ltd 9823213538

0 Answers   Cap Gemini,


What is the BPT(bussiness process testing ).and what is the main difference between BPT and QTP

3 Answers   EDS, GL Noble Denton, IIST,


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

0 Answers  


In qtp, explain what is keyword driven automation framework?

0 Answers  


How to resume the second iteration in the QTP,, if the error has intrupted the the second iteration. When i use run from step it starting from the first iteration again.

1 Answers  


How to open any application during Scripting in QTP?

7 Answers   Celgene, IBM,


Categories