Hi,

Have you tried something like this?

AutomationContext automationContext;
automationContext = new AutomationContext();
String maximumWaitingTime =
automationContext.getInstance().getProperty("maximumWaitingTime");

It's better if you can check how other integration tests were written and
follow the same pattern to refer automation.xml. (without creating new
automationContext and use already initialized objects etc.)

Regards,
Pumudu

On Mon, Sep 28, 2015 at 2:05 PM, Mushthaq Rumy <musht...@wso2.com> wrote:

> Hi Rajeenthani,
>
> I think you need to create an object instance of AutomationContext within
> your java class and proceed with it. The below link[1] might be useful for
> you.
>
> [1]
> http://malinthas.blogspot.com/2014/02/how-to-obtain-configuration-details.html
> .
>
>
>
> On Mon, Sep 28, 2015 at 1:44 PM, Rajeenthini Satkunam <
> rajeenth...@wso2.com> wrote:
>
>> Hi all,
>>
>> I am currently working on writing UI integration tests for product UES
>> using selenium.I have to make maximum waiting time for search element by()
>> as default value.As per discussion it can be configured through
>> automation.xml file. I have added <maximumWaitingTime>30</
>> maximumWaitingTime> at automation.xml file.So I need to get the value of
>> it for test java classes.Can anyone please give any suggestion on how to
>> get that value?
>>
>> --
>>
>> *Thank You.*
>>
>> *Rajeenthini Satkunam*
>>
>> *Associate Software Engineer | WSO2*
>>
>>
>> *E:rajeenth...@wso2.com <rajeenth...@wso2.com>*
>>
>> *M :+94770832823 <%2B94770832823>   *
>>
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> Thanks & Regards,
> --
> Mushthaq Rumy
> *Software Engineer*
> Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
> Email : musht...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Pumudu Ruhunage
Associate Software Engineer | WSO2 Inc
M: +94 779 664493  | http://wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to