Hey
Mis3,
Hey, no need to thank me for patience. always happy to help. I wouldnt be able to help without the hours of people helping me when i first started with soapui a couple of years ago.
I wouldnt advise just watching any old testdriven/groovy script/soapui videos you find unless youve got more coding experience to successfully understand and evaluate what youre seeing.
Im not a coder at all. All my groovy experience is due to the help of other scripters on the site (@nmrao,
ChrisAdams,
groovyguy, @HimamshuTayal, etc.), but im positive the script i gave you will work IF everything you mentioned in your previous posts is correct. If youre still having problems then theres other considerations we havent got nailed down yet or i havent been clear when ive been explaining something.
Point1 response: from what you said you only have one input field that needs to source a single subscriberId for each test. The subscriberId values should be comma separated....one per row
Point2 response: saving off property values against different scope levels is normal, however from what youve said, it isnt necessary as once youve set the property it immediately gets used (subscriberId is sourced from csv and passed to input payload), so no need to save the property value at a specific scope level.....typically you do this if you need to reuse the property value later on in your tests. In this case we're using the value immediately, so no need to worry about saving at different scope levels.
Point3 response: i find using log.info invaluable in most cases (typically i use it to make sure the variable has been assigned the value correctly) however i didnt think it necessary as we're using a single value and i can read the code so know what it doing
Point4 response: you can either use groovy to write out the responses, but easiest option is to use the "Dump File" attribute on your 'TestRequest Properties'. ( to find it, click on the SOAP teststep in your testcase to highlight it, then view the TestRequest Properties in the bottom left hand corner of your project 'Navigator'. This dump file option allows you to specify a path of where the SOAP teststeps response can be saved. I need to have a bit of a read on this however, i typically use readyapi ,not soapui and i use event handlers to write off my responses. This is pro functionality however, and not available in soapui, so i'd need to do a bit of reading to see if a looping testcase will append responses rather than overwrite the previous loop's response content.
HOWEVER, id suggest we can worry about saving your response content later once we get the rest of your script working.
Im guessing the script still isnt working correctly considering your latest questions, so could i ask for your next post you attach screenshots (dont embed!, i can never see embedded screenshots) to help me see whats going wrong?
If you could attach the following we can get everything sorted so we can move onto saving your responses.
Please attach the following:
1. csv file with suvscriberIds
2. Screenshot of your looping test case in the project navigator
3. Screenshot of the XML tab of your input for your SOAP teststep.
4. Screenshot of both RAW and XML response tabs of a successful request (status 0) and an unsuccessful request (status 306 where subscriberId does not exist)
5. Screenshot of your groovy script step contents so i can see what you have so far.
If you provide all of the above, we should be able to sort things straightaway.
By the way, if your concerned about security issues by sharing technical info, the only thing you need to obfuscate/hide is the "hostname/ip address" in the URL of your SOAP test steps. All other details would be no use to someone from a security perspective without the hostname/ip address, so as lomg as you hide/blank out that in your screenshots, youll be fine from a security perspective.
Cheers,
Rich