patilawakenOccasional ContributorJoined 6 years ago10 Posts2 LikesLikes received2 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Call Json schema complaince assertion in groovy script assertionHi richie, I am validating JSON schema of response to make sure response has all keys present by making all properties as required, also I can validate further to check the values have correct data types, formats, range and size etc, using single assertion I can assert many things in response. Now since I am using data driven test where I am setting request body or parameters from data source, I have valid and invalid combinations in the loop. When I get 200 status code it should validate the JSON schema When it has 400 status code message should be specific, or may be multiple. That's the reason I need to have status code assertions, One way is to have conditional go-to to the assertion test step when response code is 200 and so on, or writing script assertion. OAuth 1.0 with SHA256Need to have Oauth 1.0 to configured in API Authorization with Signature method SHA-256Call Json schema complaince assertion in groovy script assertion I need to validate json schema only when there is 200 status code for the API. Can we have a script assetion created from which different assertions are called depends on the status code condition. OAuth 1.0 with SHA256 Need to add Oauth 1.0 authorization with SHA256 signature method. Ready API bydefault sends with SHA1 so not able authorize in ready API. Please help me if there is any workaround available. SolvedRe: Transform REST response to Datasource You can directly use Property Transfer from Response of 1 request to request parameters of other request. I hope this would serve the purpose or still you need data source? DB Connection for No sql DB (Mongo DB) Need a DB connection utility in JDBC test step to connect to Mongo DB and validate data with response in API CURD operation. Currently we can use Mongo DB drivers in Groovy script to make connection and fire query. Re: DataSource Loop on SoapUI Pro All you need to do is Add data source as excel Browser the Excel sheet an mention the sheet name. Create individual properties for each of the coloum say lat, country, iso2, iso3 and long. Use Lat and long in parameter using property expansion/ right click and get data dialogue in paramater section. I hope this should serve the purpose.. Re: Assertions: Json Schema complaince Thanks avidCoder, Can we use any third party library for jason schema validation and the assertion is script assertion. Does Ready API supports any jsson schema validator like tv4, ajv etc.? Assertions: Json Schema complaince I want to use the Json schema complaince assertion in Ready API for API response schema validation. While adding assetion, Its required to add the Schema URL, What is this URL? What does this URL consists of? I dont have any schema URL, I have only json schema stored in a file. SolvedRe: Integration of composite project with VSTS - TFS 1. Save your composit project to Git/VSTS repository 2. Create a release pipeline in VSTS 3. Add Artifact to the release pipeline (which is your repository) 4. You will have to add the SOAP UI Pro Azure DevOPs extension from marketplace (Its free) 5. Add a stage to the Release Say Ready-API tests. 6. Configure the Agent Job. 7. Add Task SOAP UI Pro for Azure DevOps. 8. Add Publish Test report task. 9. Path to SoapUI Pro project : Should be your repositry path where your composite project is saved. 10. Enter Suite Name. 10. Enter Test Name to be run. 11. Save the changes and trigger the release.