How to copy from one script to another script in qtp

Answers were Sorted based on User's Feedback



How to copy from one script to another script in qtp..

Answer / jyoti

Set obj=CreateObject("Scripting.FileSystemObject")
obj.CopyFile "C:\test.txt", "D:\test.txt"

Is This Answer Correct ?    6 Yes 1 No

How to copy from one script to another script in qtp..

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

How to copy from one script to another script in qtp..

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

How to copy from one script to another script in qtp..

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

Post New Answer

More VB Script Interview Questions

Explain the extension .hta?

0 Answers  


how to find the textfile in the folder and copy file from one folder to another folder useing parameterigation in QTP

1 Answers   Accenture,


hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz

0 Answers  


which is the best institute in banglaore for software testing?

1 Answers  


what is used of Property........End Property loop ? how to write the script for it?

0 Answers  






What is byref and byval parameters in vbscript?

0 Answers  


what is visual basic?

2 Answers   Seion Infotech,


what is the use of Data base check point ?

3 Answers  


what do you mean .ota mobile format

0 Answers  


What are the special sub-types in vbscript?

0 Answers  


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

0 Answers  


how to organize files in object repository of qtp

1 Answers  


Categories