cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Test Session/ Test Suite Last Modified (TestCases) Date or wasModified since (by script)

tdalon
4-Participant

Test Session/ Test Suite Last Modified (TestCases) Date or wasModified since (by script)

Hello

Background: We are building a connector between our Test Execution tool and Integrity Test Management.

The synchronization works for a given Test Session.

I would like to detect if a Test Session was changed after the last synchronization.

Do you know a way by script (CLI or Java API) to find out when a Test Session was last modified or if it was modified since a specific (last sync) date?

"Modified" means here when a Test Case linked in this Test Session was last edited.

If it is not possible with a given TestSession do you know maybe if a TestSuite has such Lastmodified information propagated from its containing test cases?

In other words, if one modified a Test Case how to detect its modified date from the TestSuite container document?

I am looking for something more efficient than parsing all the related items for last modified date.

Do you have maybe any scripting advise how to get this the most efficient way?

Maybe a diff command could give the expected result?

Many thanks

Kind regards.

Thierry

2 REPLIES 2

Hi Thierry Dalon‌,

you might want to have a look at the 'tm' cli command. For example, with "tm  testcases <session id>" you can get all cases related to a test session. Maybe you could use some variation of "tm results --sessionID=<id>" with an added "--field=...." option.

Maybe those ideas are helpful.

Regards,

Dominik

KaelLizak
14-Alexandrite
(To:dthierjung)

Maybe by doing a hash on the results of the command, and storing the hash and comparing to the old hash?

Regards,
Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
Top Tags