Hi Krishantha,

Jaggery-app deployment is independent of the registry indexing. Hence,
Although jaggery app deployment completes successfully, indexing may not
have been completed and sample assets may not have been populated to the
apps.

So, we can't rely on a URL connection to the Jaggery-app. Otherwise, we
will have to check whether the assets are populated using same APIs we are
going to test.

Thanks!
- Ayesha

On Wed, Oct 29, 2014 at 8:14 AM, Krishantha Samaraweera <[email protected]
> wrote:

> Hi,
>
> On Fri, Oct 24, 2014 at 5:39 PM, Ayesha Dissanayaka <[email protected]>
> wrote:
>
>> Hi,
>>
>> Due to the registry indexing, it takes about 15 seconds to populate
>> assets and start the jaggery-apps(publisher/store) properly in ES( if
>> indexing is completed at first attempt) .This affects the tests cases since
>> the framework start to execute the test cases as soon as the server starts.
>> In order to prevent that we have implemented an extension to the
>> automation framework [01] which delays test execution for a given time.
>>
>
> Can't we create URL connection to the Jaggery apps and wait until apps get
> deployed successfully?
>
> Thanks,
> Krishantha.
>
>
>> Currently, Registry do not expose an API to check whether the indexing is
>> completed. However AFAIK registry loops indexing at interval of 15 seconds
>> from startup. Hence, currently we have put a thread sleep for 20 seconds to
>> wait the test execution. For the worst case scenario we can set it to 45
>> seconds.
>>
>> I would like to know whether there is a better way to achieve this?
>>
>> [01] "[Dev] Reduce the execution speed of Web Driver"
>>
>> --
>> *Ayesha Dissanayaka*
>> Software Engineer,
>> WSO2, Inc : http://wso2.com
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>> 20, Palmgrove Avenue, Colombo 3
>> E-Mail: [email protected] <[email protected]>
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: [email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to