Project and Portfolio Management Practitioners Forum
cancel

How to Update Responsible tester name in test lab using script editor?

SOLVED
Go to solution
Highlighted
Mylavarapu_QC
Regular Contributor.

How to Update Responsible tester name in test lab using script editor?

I have written a code to update the Responsibe tester name for test case in test lab automatically using script editor however the code is working only for the selected test case.I want my code to update all the testcases in test set.Please anyone suggest how to update all the test cases in test lab.

 

tc_FolderPath=inputbox("Please enter the test set name")

set tdc=TDConnection

set treemanger=tdc.TestSetTreeManage

set testtree= treemanger.NodeByPath(tc_FolderPath)

set tstFactory=testtree.testSetFactory

set tsList=testtree.findTestSets("TestSetName")

set theTestSet=tsList.Item(1)

Set TSTestFact=theTestSet.TSTestFactory

Set tsFilter=TSTestFact.Filter

tsFilter.Filter("TC_CYCLE_ID") =thetestset.ID

set testList=TSTestFact.NewList(tsFilter.txt)

a=inputbox("Enter Responsible tester name")

For Each TStst in testList

  TestSetTest_Fields("TC_TESTER_NAME").Value = a

Next

1 REPLY
Mylavarapu_QC
Regular Contributor.
Solution

Re: How to Update Responsible tester name in test lab using script editor?

I got the solution

 

i have added to my code and it is working :smileyhappy:

 

Set RunF = TSTst.RunFactory
Set theRun = RunF.AddItem("MyRun")