Script for purging ALM Test Runs
Question ID: 107023
0
0

I have written a script using the OTA that purges test runs. When ever the script is run I get an error.

Failed to Purge Runs

Line(143): "tdc.PurgeRuns tsfilter.Text._"

Marked as spam
Posted by (Questions: 113, Answers: 8)
Asked on August 1, 2016 4:45 am
194 views
Answers (1)
0
Private answer

I was looking back at a case where a customer that had written an OTA script to purge some runs and remembered something that may fix you script. We could never the the pruge to run using a variable for the DateUnit parameter.

You might be able to declair a constant and use that such as

Const daysPerUnit = 1

When I worked with the customer we just added the actual value instead of a variable and the script run. So your actual purge line would look like this...

'This will send the call to actually purge the old test runs.
tdc.PurgeRuns tsFilter.Text, keepLastNumberOfRuns, 1, purgeRunsOlderThanThisManyDays, purgeStepsOnly

This might be the problem.

Marked as spam
Posted by (Questions: 0, Answers: 309)
Answered on August 1, 2016 4:46 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top