can somebody send the script to write a multiplication
table in notepad through qtp

Answers were Sorted based on User's Feedback



can somebody send the script to write a multiplication table in notepad through qtp..

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

can somebody send the script to write a multiplication table in notepad through qtp..

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

can somebody send the script to write a multiplication table in notepad through qtp..

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

Post New Answer

More QTP Interview Questions

who is the best faculty in HYD? Nageshwar rao or GC reddy?

3 Answers  


My project title is "DRUG Audition and research management" it comes which domain?

4 Answers  


hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji

2 Answers  


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

0 Answers  


Write a code check the checkbox in the web table which is in the 4th row and fifth column (Use child item concept)

2 Answers   FIS, Wipro,


hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.

3 Answers  


Test Life cycle starts IS it Requirments stage or Test Initiation?

1 Answers  


WHAT IS A TEST STRATEGY & WHAT IS THE DIFFERENCE BETWEEN TEST STRATEGY & TEST PLAN?

21 Answers   ABM, AZTEC, CTS, Infosys, Nihilent, Orange,


is qtp 9.2 create the scripts with the application run on mozilla firefox browser?

3 Answers  


What is batch testing?

4 Answers  


What is the Command used to start the QTP

0 Answers   HCL,


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

0 Answers  


Categories