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
Where we can use the synchronization?
How many scripts did you have?
What is post recovery scenario?
what is vmodel?advantages and disadvantages of vmodel?
What is different command used in command Prompt while using QTP?
give me an example where u used good judgement and logic in solving a problem
How to import a test case present in ".xls" file to TD under a Test set?
Difference between action & Reusable action?
How can you exit from an action?
How to get popup error message.
How does qtp recognize objects in aut?
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
Can we run multiple QTP scripts one after the other without manual intervention? How?
is there any addin for remedy user application
What is the registration process and examination fees?