Contributions
How can I automate where a element can occur multiple times
Hi , I am automating the web services project in SOAP UI where an element can occur multiple times . Because of the fact that my automated test cases are not dynamic , I am getting hard time automating elements which are optionalor have multiple occurances. for example , lets assume I have a addEmpAddress() and this is how I automate this operation : - addEmpAddress EmployeeId (1..1) Address (1..N) Street Address(1..1) City(1..1) Country(1..1) 1. Get all the input fields to the operation from excel sheet 2., I insertall the address fields in my operation and execute the operation 3.Loop to first step to grab second excel row. The above approach works perfectly but I can not find a solution on how can I testmultiple occurances of address field. What I mean is , I want to test a scenario where one employeeId can have more than 1 address. Please suggest me which approach you will take . Thanks727Views0likes1CommentHow to automate optional fields in SOAP UI and get rid of FieldName='' ?
Hi All , I am working on a project where we are automating the Web services testing . Most of the time my approach is 1. Seed Data 2. fetch Dataset from Excel (it will be used in operation paramenters) 3. Execute the operation on the seeded data in step 1 4. Validate the results. 5 Loop to secondstep The above approach works fine for a set of fields but I am not able to find a convinient approach for optional fields. For example , if I have fields like FirstName, LastName, Age, EmployeeNumber, Address and all those are optional . and I want to check the combinations like 1. If used sent all the fields except firstname 2. User sent all the fields except lastname etc But if I keep the same SOAP structure , I will getFirstName="" and my schema validation will fail . what I am looking for is a way so that if I pass a value it appears asFirstName="Test" if I do not pass then the attribute does not show at all. Please let me know your thoughts ThanksSolved3.9KViews0likes2Comments