We have bunch of QTP 9.5 scripts available in QC 10. Now when we open those scripts, they gets opened in Read-only mode. Can we convert those scripts into QTP 10 version using some tool? Does HP provide any such tool?
I know that we can open those scripts and save the opened script to file systems which gets saved as QTP 10 version scripts. But the number of scripts that needs to be converted is much high so I was just thinking that HP may have provided such tool...
All you need to do is open the test and save it. Create a AOM script to open the script and save it using V 10.0. This is the easiest & fastest way. I don't think there is a separate tool for this.
This may help (save as a .vbs file):
<font class="small">Code:</font><hr /><pre>Set App = CreateObject("QuickTest.Application")
App.Visible = True
folderspec = Inputbox("QTP Tests Filepath?")
Dim fso, f, f1, fc, s
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.SubFolders
For Each f1 In fc
myPath = f.path & "\" &f1.name
Set qtTest = App.Test
set qtTest = nothing
App.Quit </pre><hr />
Following are the known possible solutions:
1. As mentioned in above replies, create a macro that opens the script from QC, saves it to local disk and then uploads back to QC.
2. QTP/QC Asset upgrade tool. Few of the points to note while using this tool are - QC admin rights needed, the domain/project should not be accessed by any one during the conversion, once the scripts are converted to current version there is no way we can go back to original version of the script.
Thank you all for your suggestions. We can now close this thread.