can somebody send the script to write a multiplication
table in notepad through qtp
Answers were Sorted based on User's Feedback
Answer / ravi
make sure the no untitle notepad in the taskbar
Multiplication table 5 upto 10
SystemUtil.Run"notepad"
Window("text:=Untitled - Notepad").Activate
For i = 1 to 10
x = 5 * i
Window("text:=Untitled - Notepad").Type "5 *" & i &"=" &x
Window("Notepad").Type micReturn
Next
By
Ravi
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / murugeshkumar.s
dim fso,fname
set fso=createobject("scripting.filesystemobject")
set fname=fso.cretetextefile("c:\mtable.txt")
for i=1 to 20
fname.writeline i&"*12="&i*12
next
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / tvsramakrishnachowdary
x=inputbox("enter the no for which to have mul table :")
x=cint(x)
SystemUtil.Run "notepad"
Window("text:=Untitled - Notepad").Activate
For i = 1 to 10
y = x * i
Window("text:=Untitled - Notepad").Type x&"*"&i&"="&y
Window("text:=Untitled - Notepad").Type micReturn
Next
Is This Answer Correct ? | 0 Yes | 2 No |
can we run the scripts of qtp 8.2 in the qtp7.0?
How can we encrypt the username using recording mode in login window? There is 2 encrypted types what are it
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
Diff. between keyword driven Data driven testing?
How can we import a Open Office excel file in QTP
www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example
What is keyword driven testing..what is the use of this in Automated testing
1.IF SOME OBJECT IN APPLICATION IS NOT IDENTIFIED BY QTP? HOW WILL YOU OVERCOME THIS? 2. WHEN AND WHYDO U GO FOR DESCRIPTIVE PROGRAMMING? 3. WHAT IS THE DIFFERENCE BETWEEN VB AND VBA? 4.WHAT ARE THE REGULAR EXPRESSIONS YOU USED? 5.IF ANY REQUIREMENT IS ADDED IN YOUR PROJECT, HOW WILL YOU PROCEED TO DERIVE THE TEST CASES AND HOW WILL YOU PERFORM AUTOMATION FOR IT?
I am not able to record yahoomail browser.its giving error like "The browser Application can't be launched .Posssibly the URL is wrong" So anyone can tell me what setting i have to do in qtp??
How to make arguments optional in a function?