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 many types of recording are there?
write a text script to display * as below ********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********
How are values assigned to string type and numeric type variables?
* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?
if there is any string in a given format like as "company name employeecode date" then we have to fetch employeecode form string for ex-string is "capgemini12345june2013" then we have to fetch 12345 by using vb script so guys how can we do that please reply it.
Mention what is vbscript?
plz give ans to this in vb script........ "krishna radha" i want to print this string "Radha Krishna" like this
How to get the background color of a weblist?
what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description about Reporter.ReportEvent ?
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.
What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.
what is the code in QTP to take screen shot? Please send me any one to my mail id. my mailid is manu.sanepalli@gmail.com