How to pass a variable in Dos Command using QTP?
Eg:
Dim path1, path2
path1 = "C:\Test\sample1.doc"
path2 = "C:\Test\sample2.doc"
How can we pass these path1 and path2 inside the "copy" dos
command?
I tried like this. this is not working.
oShell.run "cmd /K copy" &path1 &path2
Answer / raghuram
Dim oShell
Set oShell = CreateObject ("WSCript.shell")
oShell.run "cmd /K CD C: & Dir"
Set oShell = Nothing
I was able to do in this way....you can try and let me know
| Is This Answer Correct ? | 3 Yes | 6 No |
How to do excception handling ( error handling ) in QTP
6 Answers Institute for Medical Education,
In key word driven framework,we will rename the logical names of objects,why?
1) What is the diff Between GetRoproprty and Gettoproperty? 2)What is Redim?
Difference between test object and run time object?
assume i have few url link how will i dynamically call then using descriptive programming?
difference Between Call Run action and copy of action?
Explain the Load testing process?
I want some banking domain projects where can i get this projects ( anybody can help me plz)
How to import the Test Results in QTP to an Excel sheet
Please anybody can tell the where can i get the information about pharma and bank testing, i put the pharma&bank projects in my resume, so i dont know what to tell about them, so where can i get the information and what we test for these, i need domain information, what r the screen we test?
Explain the QTP Tool interface.
Explain QTP using different development techniques ?