Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: Can test configuraiton for a test case be copied and paste to the other test cases?

$
0
0

Hello Jan Czajkowski,

 

I tried using TestConfigFactory property and I was able to modify the existing ConfigValue using following Code.

 

set tdc = createobject("TDApiOle80.TDConnection")

tdc.InitConnectionEx "http://<almurl>/qcbin"

tdc.Login "<myUserName>","myPassword"

tdc.Connect "myDomainName","myProjectName"

 

If (tdc.Connected <> True) Then

MsgBox "QC Project Failed to Connect"

Wscript.Quit

End If

msgbox("Connection Success")

 

Call AddTestConfig

 

tdc.Disconnect

tdc.Logout

tdc.ReleaseConnection

 

msgbox("Conn close")

 

Function AddTestConfig()

 

On Error Resume next

 

Set TestList = tdc.TestConfigFactory

 

'Set TestPlanFilter = TestList.Filter

'TestPlanFilter.Filter("TSC_Name") = testPlanID

'Set TestPlanList = TestList.NewList("")

'Set myTestPlan = TestPlanList.Item(5313)

 

TestList.item(5734).Field("TSC_Name") = "Test_Name"

TestList.item(5734).Post

 

msgbox("TestCase Updated")

 

Set TestPlanFilter = Nothing

Set TestList = Nothing

 

 

End Function

 

 

But actually I want add new config values. I think I should use AddItem method and I tried a lot, but failed.

Could you please share the code for adding new config values,then  It will be very helpfull.


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>