I am trying to export scripts from local drive to to Quality Center in the same folder structure. But I am unable to save test in Quality Center in nested folders.
Folders till Core is present in the QC, but I want to save Script1 in folder Module1(Folder Not Present in QC).
Folder Module1 gets created in QC but script1 doesnt get saved and we get the following message
"Failed to save test or the business component"
I am using this method :
Please let me know if I am missing anything.
Automation Test Engineer
What version of QTP and QC are you using?
Please provide the full code in your script so that we can help you debug it. What parameters are you supplying with this call.
qtqcHandle.Test must be pointing at an existing Test. Show us the code where you do that.
If you were using QC manually, would you have permission the create a test in that new folder?
Does a test by the same name already exist in the folder?
Do you have version control enabled for the target QC project?
Last edited by tclasp; 01-23-2013 at 03:42 PM.
(Opinions and information contained in this post are wholly my own and do not reflect the opinions of my employer.)
Set QCConnection = QCUtil.QCConnection
Set treeManager = QCConnection.TreeManager
' Specify the local path to the file.
LocalFilePath = "D:\Scripts\MyScript.txt"
' Specify the Quality Center path to the desired folder
Screen1 ="Subject\Oracle R12 Automation\SLA"
Set node = treeManager.nodebypath(Screen1)
set att = node.attachments
Set atta = att.AddItem(Null)
atta.FileName = LocalFilePath
atta.Type = 1