Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

Update test case status in QC through python

$
0
0

Hi all,

 

I am using Python with win32com for connecting to QC. I am able to update the run collection status.

 

print "Adding test"
newItem = ts_instance.RunFactory.AddItem(None)   # newItem == Run Object
newItem.Status = 'Passed'
newItem.Name = 'JJ'
newItem.Post()
#newItem.Refresh()
newItem.CopyDesignSteps()   # Copy Design Steps
newItem.Post()
print "Updating"
steps = newItem.StepFactory.NewList("")
step1 = steps[0]
step1.Status = 'Not Completed'
step1.post()
print "Updated"

 

But my requirement is to update the status of the test case through python script.

 

If any one of you have code snippet to refer to, it will be of great help.

 

Regards,

Ruchi.


Viewing all articles
Browse latest Browse all 5491

Trending Articles



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