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

How to capture a runtime error in vbscript?

0 Answers  


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

0 Answers  


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

0 Answers  


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

0 Answers   Synechron,


What purpose does ‘on error resume next’ serves?

0 Answers  






Explain about operator precedence in vb script?

0 Answers  


what is the use of QCUtil? explain with one example?

1 Answers  


give me an ex. of unoverloaded method?

2 Answers   Misys,


What are the naming conventions while declaring a variable in the vbscript language?

0 Answers  


Explain vbscript in detail?

0 Answers  


What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.

3 Answers   Accenture,


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

0 Answers  


Categories