Can I use relative path in SoapUI NG data source test step?
Hi, with the data source test step in SoapUI NG, is there any way to specifiy a filename relative to the directory of the project file? Ideally I would like to write something like ${ProjectDirectory}/myExcel.xlsx to avoid using absolute paths. I'm using Ready! API 1.5.0. Thanks in advance.Solved4.3KViews0likes2CommentsHow can I map a datasource to values in a REST XML content (xml element values)?
How can I map a datasource to values in a REST XML content (xml element values)? I have a datasource with values; say parm1:value,parm2:value,parm3:value, etc. I have a REST POST request with XML content. I need to map the values in the datasource to the xml elements, so that each request iterates through my datasource (excel document) and fills the xml element values. I can't seem to find how I map them accordingly.Solved2.6KViews0likes8CommentsReading excel column into property, parsing REST response for property member
In a test case, I have a data source step. It reads a column range into a property. When I run the step, the data log shows each row from the desired column range. I have a REST request after data step. I would like to make assertions to the response to check that each row member of the property from the data step appears in the response. This does not need to be directly checking items in the same index, as the order may change. I want to check only that each item from data property is in the JSON response.Solved2.4KViews0likes8CommentsHow can i parameterize REST resource with Data Source.
I want to parameterizethe below two resources (please see the screenshot) . I know we can use data sourcefor using different params. How can i achieve it in this case. I want to supply data from excel to below to encircled fields, please let me know how can it be achieved .Solved2.2KViews0likes2CommentsRE: SoapUI NG Pro Count No. Of Test Cases
Hello, I just want to know how to count the total number of test cases inside my Project. I have certain condition to apply on this. 1. The disabled/reusable TestSuites/Test Cases Should be omitted from this count. 2. If any of the Test Cases involves with DataSource/DataSourceLoop Test Steps, then I need to count the total number of rows inside the DataSource as Test Case Count. I dont want to count the entire Datasource/loop as a single test case. I have the following script to achieve the Task 1. But want to know how to achieve the Task 2. def totalTestSuiteCount = 0; def enabledTestSuiteCount = 0; def disabledTestSuiteCount = 0; totalTestSuiteCount = testRunner.testCase.testSuite.project.getTestSuiteCount(); for(i = 0; i < totalTestSuiteCount; i++) { flag = testRunner.testCase.testSuite.project.getTestSuiteAt(i).isDisabled(); if(!flag) enabledTestSuiteCount = enabledTestSuiteCount + 1; else disabledTestSuiteCount = disabledTestSuiteCount + 1; } log.info "Total Test Suite Count : " + totalTestSuiteCount; log.info "Total Enabled/Active Test Suite Count : " + enabledTestSuiteCount; log.info "Total Disabled/Reusable Test Suite Count : " + disabledTestSuiteCount; def totalTestCaseCount = 0; def enabledTestCaseCount = 0; def disabledTestCaseCount = 0; for(i = 0; i < totalTestSuiteCount; i++) { flag = testRunner.testCase.testSuite.project.getTestSuiteAt(i).isDisabled(); if(!flag) { totalTestCaseCount = totalTestCaseCount + testRunner.testCase.testSuite.project.getTestSuiteAt(i).getTestCaseCount(); } } for(i = 0; i < totalTestSuiteCount; i++) { flag = testRunner.testCase.testSuite.project.getTestSuiteAt(i).isDisabled(); if(!flag) { tccount = testRunner.testCase.testSuite.project.getTestSuiteAt(i).getTestCaseCount(); for(j = 0; j < tccount; j++) { tcflag = testRunner.testCase.testSuite.project.getTestSuiteAt(i).getTestCaseAt(j).isDisabled(); if(!tcflag) enabledTestCaseCount = enabledTestCaseCount + 1; else disabledTestCaseCount = disabledTestCaseCount + 1; } } } log.info "Total Test Case Count : " + totalTestCaseCount; log.info "Total Enabled/Active Test Case Count : " + enabledTestCaseCount; log.info "Total Disabled/Reusable Test Case Count : " + disabledTestCaseCount;2.1KViews0likes3CommentsUsing Excel file as input to Soap call. Date issue uses slash separation.
Hi I'm trying to call a soap method where one of the inputs is a date. All the other input work fine. The date-format inthe excel sheet is DD-MM-YYYY but when SoapUI Pro reads it, it comes out as DD/MM/YYYY. I.e. it is separated by slashes instead of hyphens. Now the request does not adhere to the xsd schema and hence I cannot send it. So the question is how do I change the date format of the input in SoapUI? Thanks in advance.Solved2.1KViews0likes4CommentsIs there a way I can input a specific value what will only run tests with that value
Hey Folks, I'm wanting to input a specific value before running my tests that will allow me to only run tests that have that specific value in the Datasource. Would I be able to do this in TestRunner under Global/System/Project Properties? Each test has multiple iterations I would want to skip the iterations that don't contain the variable that has been inputed. I imagine that this could be done with a Groovy script inserted into each step but I need to know what to specify the value to be ran. Many thanks!Solved2.1KViews0likes5CommentsExcel data source read by column
In the Data Source Options dialogue, settings, Start Row and End Row can be specified. However my data is a time series, from left to right column. Can a start and end column be configured as data source and if so, how is this done? e.g. I want to get from column cell B2 to V2Solved1.9KViews0likes9CommentsUnable to access file names from shared network path in “Directory” Data Source
Detailed problem statement: ReadyAPI Version 2.2.0 composite project has been created with “Javascript” language. We were in need to automate the validation of the output files. When we use Directory and give shared network drive as \\<servername>\<foldername>, we were not getting any output. But if we pass directory path as absolute as “C:\SLP”, we are able to get the output. Would need help to find a way to get the output of fileNames from Directory Datasource when we give "Network path"Solved1.9KViews0likes2Comments