On Tue, Oct 16, 2012 at 1:54 PM, Chamara Silva <[email protected]> wrote:

> Following are the steps need to be followed when you are writing
> worker-manager test cases.
>
> 1. Enable cluster option in clarity.properties file.
>      "cluster.enable=true"
>
> 2. Add manager and worker nodes details to clarity.properties file.
>
> Syntax :
>
>     as.host.name  = MANAGER_IP,WORKERNODE_IP
>     as.http.port =  MANAGER_HTTP_PORT,WORKERNODE_HTTP_PORT
>     as.https.port = MANAGER_HTTPS_PORT,WORKERNODE_HTTPS_PORT
>     as.webContext.root =  MANAGER_CONTEXT_ROOT,WORKERNODE_CONTEXT_ROOT
>

Is it correct to have "WORKERNODE_IP" here? worker nodes are fronted by a
load balancer and it should be the host/ip of LB instead of individual
worker node.



>
> Sample :
>
>    as.host.name = localhost,10.100.3.224
>    as.http.port =  9763,9764
>    as.https.port = 9443,9445
>    as.webContext.root = mgr,wkr
>
>
> 3. use below code to extract worker,manager configurations in your test.
>
> EnvironmentBuilder environmentBuilder = new EnvironmentBuilder();
> environment.getAs().getWorkerVariables(). // getting worker node configs
> environment.getAs().getProductVariables(). // getting manager configs
>
> ex :
> environment.getAs().getWorkerVariables().getHostName()
>
>
>
> Thanks,
> Chamara Silva
>
>
>
> On Tue, Oct 16, 2012 at 12:35 PM, Krishantha Samaraweera
> <[email protected]> wrote:
> > Hi Chamara,
> >
> > Can you please illustrate how to use this new feature for Clustered
> > environment (worker manager separated)
> >
> > A simple example would be great.
> >
> > Thanks,
> > Krishantha.
> >
> > On Tue, Oct 16, 2012 at 11:20 AM, Chamara Silva <[email protected]>
> wrote:
> >>
> >> With the above feature, existing tests can be run on top of the worker
> >> manager separated test environment. please find the related patch from
> >> [1].
> >>
> >> 1. https://wso2.org/jira/browse/TA-576
> >>
> >> --
> >> Suminda Chamara Silva
> >> WSO2 Inc.
> >> Mobile: +94718302858
> >> blog: http://chamaras.blogspot.com
> >> _______________________________________________
> >> Dev mailing list
> >> [email protected]
> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
> >
>
>
>
> --
> Suminda Chamara Silva
> WSO2 Inc.
> Mobile: +94718302858
> blog: http://chamaras.blogspot.com
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to