why i am getting null/empty response while deleting the employee.script is running perfectly Helpme?
i am doing adding employee, getting employee and deleting the same employee in same groovy script. adding and getting employee works fine. I need to get the response of getemployee and pass it to delete employee request.I done that but response for delete employee is not shown[PFA]. if u want anything i can share more. Help is much appreciated. Thanks ArunachalamSolved1.4KViews0likes2CommentsHow to dynamically insert xml nodes based on parameters from excel sheet in SoapUi using groovy
Below is the code which I used to get a data from excel sheet and using it in my Request. import jxl.* def TestCase = context.testCase def FilePath = "D:\\DataSheet_Services_create.xls" def count Workbook WorkBook1 = Workbook.getWorkbook(new File(FilePath)) Sheet getExcelSheet = WorkBook1.getSheet("SearchCustomer") PropertiesTestStep = TestCase.getTestStepByName("Properties") count = PropertiesTestStep.getPropertyValue("Counter").toInteger() Reading the excel data: Cell Field20 = getExcelSheet.getCell(19, count) Cell Field21 = getExcelSheet.getCell(20, count) setting the cell values to properties: PropertiesTestStep.setPropertyValue("propertyName1",Field19.getContents()) PropertiesTestStep.setPropertyValue("propertyValue1", Field20.getContents()) My request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <ws:companyId>?</ws:companyId> </soapenv:Header> <soapenv:Body> <ws:createCustomer> <ws1:customerDTO> <properties> <propertyName>${Properties#propertyName1}</propertyName> <propertyValue>${Properties#propertyValue1}</propertyValue> </properties> </ws1:customerDTO> </ws:createCustomer> </soapenv:Body> </soapenv:Envelope> My actual problem : In excel data there are N no of properties parameter , In that case how can I dynamically insert properties node in request xml like below <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <ws:companyId>?</ws:companyId> </soapenv:Header> <soapenv:Body> <ws:createCustomer> <ws1:customerDTO> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <ws:companyId>?</ws:companyId> </soapenv:Header> <soapenv:Body> <ws:createCustomer> <ws1:customerDTO> <properties> <propertyName>${Properties#propertyName1}</propertyName> <propertyValue>${Properties#propertyValue1}</propertyValue> </properties> <properties> <propertyName>${Properties#propertyName2}</propertyName> <propertyValue>${Properties#propertyValue2}</propertyValue> </properties> <properties> <propertyName>${Properties#propertyName3}</propertyName> <propertyValue>${Properties#propertyValue3}</propertyValue> </properties> </ws1:customerDTO> </ws:createCustomer> </soapenv:Body> </soapenv:Envelope> </ws1:customerDTO> </ws:createCustomer> </soapenv:Body> </soapenv:Envelope> nmrao,asn_007 I have followed below post https://community.smartbear.com/t5/SoapUI-Open-Source/Create-Dynamic-XML-using-Groovy-amp-parameterize-the-arguments/m-p/140776#M23969764Views0likes2CommentsHow to automate the SoapUI request?
I'm new to Soapui concepts and I've some SoapUI request. I need to hit them through SoapUI and have to validate the request components by comparing the values from DB tables and need to automate this flow. I want to hit the request through Eclipse using Selenium and Java and will validate them using JDBC. Is that good approach? Can anyone please suggest me how can I proceed with my execution.964Views0likes0CommentsURGENT HELP!! How do I begin to implement a custom JUnitReportCollector?
I have already seen lot of blogs and post but not much clear about how can i modify existing junitreportcollector class to generate custom report. I need success test step as well in my report. My current implementation just run mvn test over xml file like: <plugin> <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>${readyApiVersion}</version> <dependencies> <dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>sqljdbc4</artifactId> <version>${sqlVersion}</version> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>${pgVersion}</version> </dependency> </dependencies> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>${basedir}/scripts/dortal/myproject.xml</projectFile> <outputFolder>${basedir}/target/surefire-reports</outputFolder> <testSuite>${soapui.test-suite}</testSuite> <testCase>${soapui.test-case}</testCase> <junitReport>true</junitReport> <printReport>true</printReport> <environment>Default environment</environment> <settingsFile>${basedir}/soapui-settings.xml</settingsFile> <projectProperties> <value>JDBC=${sqlJdbc}</value> <value>qe_id=${Id}</value> <value>AuthEndpoint=${AuthEndpoint}</value> </projectProperties> </configuration> </execution> </executions> </plugin> Can somebody help here?1.3KViews0likes3Comments