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

in my application,validation message has in japanise language.how to validate this message is appears properly or not

0 Answers  


How can you close the second opened browser?

0 Answers  


I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini

1 Answers  


Can anyone tell me about "Step- By Step Paramterization". among the two paramaterizations, Step by step and Parameterize All, which one is mostly used.

0 Answers  


How you test the object which is dynamically changes its location?

7 Answers   Wipro,


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

0 Answers  


Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

0 Answers  


What expansion of "MIC" in MICPASS (TEST ReportPAGE)

11 Answers   TCS,


What is the main disadvantage of using low level and Analog modes?

2 Answers  


Explain QTP Testing process ?

13 Answers   TCS,


Suppose i have some records in database now i want to use first 1000 records for one test and next 1000 to 2000 records for another test how can we do this just for ex oracle database pls tell me

1 Answers  


what are the different Frame Works in Quick Test Proffessional testing

3 Answers   Wipro,


Categories