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

During execution, how can we capture the data from the pop- up, ie. when any popup comes with some numbers written on it, then how can we capture the value/number that is coming on the pop-up and save in the dynamic file/or other file, even when the run is going on.

2 Answers   Wipro,


How do you do batch testing in wr & is it possible to do in qtp, if so explain?

0 Answers  


How do you synchronization point through DP?

0 Answers  


Hi Can u plz suggest who is the Best Faculty for Advanced QTP Scripting in Hyderabad ,plz suggest me..... or send me a replay to satheesh.goli@gmail.com, r make me a call 9866335752

1 Answers   AppLabs,


what is vss and cvs what is main difference b/w these two

3 Answers  






How is GC reddy online program Will i get placed How are the placements.

1 Answers  


How to access values from Unix OS and how to write..

1 Answers  


How you can decide which type of object repository you have to use?

0 Answers  


Can abody explain me Send keys concept

1 Answers   Cap Gemini,


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

0 Answers  


If enter into interviewer room? how u introduce with him. with shakehand or waht?

2 Answers  


What is the Automation Process followed in your company?

1 Answers  


Categories