Hi Everybody,

Can anybody please tell me the how to display the result of
the QTP in the notepad text file rather than in the QTP
result window.

Suppose this is my simple script:WHich will open the
notepad file and enter some text and then will change the
font then will calculate how much time has been taken.Now,
in this script i want to display the result in notepad file.

Dim s
Dim starttimer,endtimer,timeit
s="uyetuywqtywqte"
SystemUtil.Run "notepad","","Y:\",""
Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" +
micCtrlUp
Window("Notepad").Dialog("Save As").WinEdit("File
name:").Set "test1"
Window("Notepad").Dialog("Save As").WinEdit("File
name:").Type micReturn
Window("Notepad_3").Type s
Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s"
+ micCtrlUp
starttimer=timer
Window("Notepad_3").WinMenu("Menu").Select "Format;Font..."
Window("Notepad_3").Dialog("Font").WinEdit
("Font:").Type "cou" + micDwn
Window("Notepad_3").Dialog("Font").WinComboBox
("Font:").Select "Courier"
Window("Notepad_3").Dialog("Font").WinEdit
("Font:").Set "Courier"
Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type
micReturn
endtimer=timer
timeit=endtimer-starttimer
print(timeit)

Please also tell me where the function for the text file
result will be declared and where it should be called.

Thanks,
Gaytri

Answers were Sorted based on User's Feedback



Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepa..

Answer / chaitu.c

Hi
Gayatri

Your questions Good,But This is not clear,try to send
clearly.i will be try to answer the question

Ok
Bye
Chaitu.C

Is This Answer Correct ?    0 Yes 1 No

Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepa..

Answer / gaytri

Hi Chaitu,

Actually what I want to do is : I want to display the
result of my script in the notepad text file rather than in
the test result window, as it is usually displayed.here I
had given one example of my script. You can take any
example.
I think for this we have to create one function, but this
is not clear to me where to call that function and what
will be the definition of the function.

Please let me know if still it is not clear to you.


Thanks,
Gaytri

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

In my QTP script I have a word in notepad that ends in a question mark, for example... "father?" As part of my script I want to delete the question mark. How do you delete a character in notepad?

4 Answers  


Dis advantages of XML checkpoint ?

0 Answers   Sapient,


How the smart identification is used in real time?Please explain with an example

0 Answers   Wipro,


Hi friends, In a particular test how many maximum call to new actions we can call?It reusable or normal actions what ever it is .

1 Answers   AppLabs,


I have action1, action2, action3 r there.my query is while executing if i get any error in action1 i want exit from here itself, otherwise execute action2, if i get any error in action2 i want exit from hereitself, like this,what is the method for this?

5 Answers   AZTEC,


What is the default add-ins in qtp?

0 Answers  


What are the different attributes used with regular expression?

0 Answers  


what is the difference between image and bitmap check point

3 Answers  


How would you export a script from one pc to another in qtp?

0 Answers  


What are the different scripting languages you could use when working with QTP ?

6 Answers  


4. what is the use of Text output value in Qtp?

1 Answers   Wipro,


why don’t use real time they r not using check points

1 Answers   Wipro,


Categories