Re: [Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Amalka Subasinghe
No we can't What I want to do it, when executing TestManagerListener.onStart() class we create a tenant and then in the test cases i want to use that tenant's id. if we hard code the tenant id in automation.xml file, every time we have to manually create the tenant in the af setup before execute

Re: [Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Mahesh Chinthaka
Hi Amalka, What is the use case ? Why do you want to pass a value from onStart method to a test case. Configuring the value in automation.xml and reading it inside the test case wont help ? Thanks On Tue, Oct 13, 2015 at 2:16 PM, Amalka Subasinghe wrote: > Hi, > > I want to

Re: [Dev] Can we pass a variable from TestManagerListener to a TestCase?

2015-10-13 Thread Nuwan Wimalasekara
Hi Amalka, As per my understand, There is no way to pass parameters form TestManagerListener to Individual test classes. However There are two possible way to achieve your requirement. 1) Tenant Management admin service can be used in test classes to get the tenant id if the tenant domain is