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

I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.

0 Answers  


Hi guys i'm prepareing for interview question for qtp i don't have bayground for vb scipt language can any one tell me it is easy to do job in qtp without bayground.

3 Answers  


What are the benefits of qtp?

0 Answers  


my assignment is,how can i differentiate between readed & unreaded mails in my inbox ?, since for both readed & unreaded having same properties for both test objects &run time objects

2 Answers  


What are the parameters provided by QTP?

3 Answers   Ordain Solutions,






is it possible to change the date format like MM/DD/YY into DD/MM?YY through script in QTP

5 Answers   IBM,


What are the differences between table and db checkpoints?

0 Answers  


write a VBscript code to parametrize test script using test data from sqlserver database?

2 Answers   IBM, Polaris,


How do you open adobe acrobat file in QTP and do some testing on that file ?

0 Answers  


What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance.

11 Answers   Polaris,


Which features or drawbacks of QTP lead to the upgrade for a newer version?

0 Answers  


What do you mean by iteration?

0 Answers  


Categories