The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Go to solution
Highlighted
Mylavarapu_QC
Acclaimed 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
Acclaimed 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")

//Add this to "OnDomLoad" event