IF application is a Java-based application means 2 0r 3
tier application. How the script will be in QTP. pls kindly
give some sample script.

Answer Posted / baba fakruddin

VBScript is scripting language which is used by QTP. QTP
supports no.of environments. Initially we have to check
particular addin and enter. QTP prepares methods for that
environment in background and it identify the object and
generates steps with that methods.

for Java application, we have to install java addin and
check java addin before we start scripting.

QTP will record script in the form of

javawindow("Calculator").javabutton("1").click
javawindow("Calculator").javabutton("2").click
javawindow("Calculator").javabutton("+").click
.
.
.
.

if you wanna write scripts in descriptive you can go like this
javawindow("windowname:=Calculator").javabutton("text:=1").click
javawindow("windowname:=Calculator").javabutton("text:=2").click
.
.
.

you can use collection object

dim window
set window=description.create()
window("title").value=Calculator

javawindow("window").javabutton("text:=1").click
javawindow("window").javabutton("text:=2").click
.
.
.
.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What ate the Technologies supported by QTP?

648


How will you test a keyboard?

605


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

702


How to integrate the qualitycenter with qtp

1777


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

599






Where you get the run time data table?

589


What is object repository in qtp?

562


distinguish between old version and new version QTP features.

1865


What is Associate Repository in QTP 9.2 ?

605


What are benefits of qtp?

587


Explain the concept of how quicktest professional identifies object?

540


hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]

1462


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

618


Name the properties you would use for identifying a browser and page when using descriptive programming?

528


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

1693