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 is test object model in quicktest professional?

615


How to create scenario selector

1467


How to create Reusable and Multiple Actions?

1702


how u will evaluate the tool for test automation?

1361


Have you used xml check point in your project? How?

539






how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1532


When to use shared and local object repository?

622


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

1294


What is output value? How many types of output values are there in qtp?

574


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1273


How can you handle exceptions in qtp?

530


what is the mail use of frame work(with detail). architecture for keyword driven frame work

1411


What are the check points can be inserted without recording?

592


Difference between test object and run time object?

586


Explain the concept of how quicktest professional (qtp) identifies object?

570