How to copy from one script to another script in qtp
Answers were Sorted based on User's Feedback
Answer / jyoti
Set obj=CreateObject("Scripting.FileSystemObject")
obj.CopyFile "C:\test.txt", "D:\test.txt"
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / bfakruddin
I did get your answer friends.....
I think he asked about script not file...
if script is available in vbs file we can copy using FSO
if script is available in QTP Expert view how would you
copy..?
think...?
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / avishek
Set fso=CreateObject("Scripting.FileSystemObject")
obj.CopyFile "C:\test.txt", "D:\test.txt"
set fso = nothing
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / vasanth
First you need to know where your scripts are store by QTP?
Each script is stored as MTS file in action folder
When you open your test script folder in explorer you will
see Action0,Action1....your scrips can be found in Action1
onwards.
now you can modify your scripts as you want. :)
Is This Answer Correct ? | 0 Yes | 0 No |
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
How will you get the octal value of the given number in vbscript?
what is diff between static and dynaic arrys?
Mention what is vbscript?
What is the difference between function and procedure?
VBscript for QTP,best tutorial?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
int a=4857 i need output as 7584.without using any inbuild function?
Mention characteristics of sub procedures?
write a program to display the system specifications of client system with the help of vbScript.
Explain the extension .hta?
What is the output of a + b in vbscript if a = 5 and b = 10?