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 |
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org
How to get the length of the string by making use of the string function?
who you define variables and functions in VB?
How to search word in a string without using instring function?
How to use Text file (Notepad) as ur data source in QTP? Can u please provide some function code for it?
write a qtp script to count the number of minimized windows
how to validate the text in a web table
how to store charecters of HARIBABU Using arrays
write a vb script to find the size of d drive?
What is the difference between javascript and vbscript?
Can u describe what kind of testing are for OTC derivates by banks.