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 static.

2) Static variable can be used to store the tenant id in TestManagerListener
and that variable can be refer in test classes.

in both ways you can get the tenant id which you created in
TestManagerListener.

Thanks,
Nuwanw

On Tue, Oct 13, 2015 at 2:27 PM, Amalka Subasinghe <[email protected]> wrote:

> 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 our test cases.
>
>
>
> On Tue, Oct 13, 2015 at 2:22 PM, Mahesh Chinthaka <[email protected]>
> wrote:
>
>> 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 <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> I want to set a value to a variable in TestManagerListener.onStart()
>>> method and use it in a test case. How can I do it?
>>>
>>> Thanks
>>> Amalka
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: [email protected] | Web: www.wso2.com
>>
>
>
>
> --
> Amalka Subasinghe
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>



-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to