Contributions
context.setProperty and context.getProperty
I have 2 groovy scripts inside a testsuite in one groovy script i am doing the following step context.setProperty( "values", list ); context.setProperty( "index", 0 ); log.info("Values " + context.getProperty( "values" )) log.info("Index " + context.getProperty( "index" )) Log file has: Tue Mar 13 09:33:50 CDT 2012:INFO:Values [9019439!2009-04-30T00:00:00, 9021279!2009-02-28T00:00:00, 9021295!2009-03-01T00:00:00, 9021567!2009-01-01T00:00:00] Tue Mar 13 09:33:50 CDT 2012:INFO:Index 0 Now in another groovy script I am performing def values = context.getProperty( "values" ); def index = context.getProperty( "index" ); log.info( "Values " + values ); log.info( "Index " + index); I am getting back null values and I dont understand why. I have done this before in the past and it worked just fine.13 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.3KViews0likes0CommentsLuntbuild/Hudson
When building testcases to execute within luntbuild or hudson can there be many instances of testrunner running. Example say I have 2 testcases and I want them to run them at the same time, can i build a test1 and test2 seperate within luntbuild or hudson and have them kick off at the same time?948Views0likes0Comments- 665Views0likes0Comments
Re: Property Transfer Step
Some reason I dont see my attachment so I am posting the code in the propert transfer step. declare namespace p383='http://types.subscriber.svc.lhs.principal.com/SubscriberService_2_1/'; //p383:getSubscriberAgreementListResponse/memberAgreement[1]/memberGroupID665Views0likes0CommentsProperty Transfer Step
I have a question with regards to this. <p383:getSubscriberAgreementListResponse xmlns:p383="http://types.subscriber.svc.lhs.principal.com/SubscriberService_2_1/"> <memberAgreement> <effectiveDate>2010-01-01</effectiveDate> <expiryDate>9999-12-31</expiryDate> <agreementID>993669000826914</agreementID> <productCode>9</productCode> <productDesignCode>2000066</productDesignCode> <productSubClassCode>9</productSubClassCode> <statusCode>1</statusCode> <cgsStatusCode>1</cgsStatusCode> <productSubClassDescription>Dental</productSubClassDescription> <memberGroupID>723764000595644</memberGroupID> </memberAgreement> <memberAgreement> <effectiveDate>2010-01-01</effectiveDate> <expiryDate>9999-12-31</expiryDate> <agreementID>503863000158764</agreementID> <productCode>10</productCode> <productDesignCode>2000067</productDesignCode> <productSubClassCode>9</productSubClassCode> <statusCode>1</statusCode> <cgsStatusCode>1</cgsStatusCode> <productSubClassDescription>Dental</productSubClassDescription> <memberGroupID>723764000595644</memberGroupID> </memberAgreement> </p383:getSubscriberAgreementListResponse> As you can see I have two memberGroupID fields(See Above) and I only care about the first one because its product code is equal to 9. When I setup the property transfer step(See Attachement) I selected the one I wanted and it hard coded a [1] saying grab that specific occurrence. Is there a way I can add logic in the property transfer step to look at product code and when it is equal to 9 grab the corresponding memberGroupID? Note: I know that this reponse has teh same member group id however there are instances where they are different!978Views0likes3CommentsresponseHolder.declareNamespace
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def responseHolder = groovyUtils.getXmlHolder( "getContract#response" ) //This code works log.info("first: " + responseHolder.getNodeValue("//p359:ContractIdNotFoundException/errorMessage")); log.info("first: " + responseHolder.getNodeValue("//soapenv:Fault/faultstring")); //This code does not work responseHolder.declareNamespace( 'ns1', 'http://types.contract.svc.lhs.principal.com/ContractService_1_2/'); log.info(responseHolder.getNodeValue("//ns1:faultstring")); I am trying to declare a namespace and the access the nodes. This seems to not be working. I have managed to access them by the full path as you can see above. Below is the sml response that i am getting. p359:>ContractIdNotFoundException com.principal.lhs.svc.contract.types.ContractIdNotFoundException Contract Id Not Found Any help on why my code may not be working would be helpful. Thanks!!874Views0likes1Comment