Page 1 of 1

How can I get the current running recording GUID?

Posted: Fri Mar 08, 2019 8:06 pm
by ewu
Hi,

How can I get the current running recording GUID?
I need to log the current running recording guid to database.

Thanks,
Emma

Re: How can I get the current running recording GUID?

Posted: Mon Mar 11, 2019 9:20 am
by manish
Hi,

You can find the GUID of the current running testcase in the *.rxtst file i.e. the test suite file.
Its an XML file where you can search the testcase name and find the corresponding GUID.

Hope it helps
Manish

Re: How can I get the current running recording GUID?

Posted: Mon Mar 11, 2019 9:45 am
by odklizec
Hi,

Another possibility is using this code, placed inside the module of your choice:

Code: Select all

	TestModuleLeaf curModule = (TestModuleLeaf)TestModuleLeaf.Current;
	string getName = curModule.DisplayName; // returns cur. module name
	var getGUID = curModule.Id; // returns cur. module GUID