Hi, i have been build a testcase that works god with the same Contentfile each. For now i would send up a different file to the Soap Service. Its have the same name like in my datasource.
Example: id=123456789 File=123456789.pdf
Any idea ?
Thanks,
Stefan
Solved! Go to Solution.
Please check the screen shot.
Define the directory(where the file are available in the system) at suite level (You can use test case level as well, but my sample defines at suite level so that the same can be used in other test cases) with property DIRECTORY; and define FILE property at test case level.
Now, once you read the value from data source, assign that value to FILE property
By now, the FILE will have different value each time as you are modifying before Request step.
Use appropriate content type. Just focus on directory and file names, I would say.
Please refer documentation
https://www.soapui.org/scripting-properties/working-with-properties.html
https://www.soapui.org/scripting-properties/property-expansion.html
Thanks, i dont understand it ? Do you know a Example for this ?
How i can set the relation between Filename / Filepath and Name in a Excel Sheet ?
Thank you for the advice Rao!
@stefankranz please let us know if you managed to implement the suggestion, or still looking for guidance?
Sonya,
no i dont have a solution. I dont understand how i can match my fieldcontent like 123 and my files 123.pdf.
How it works ?
Thanks,
Stefan
Thanks for the update. Let's see if the Commuity can help guide you through this.
@HimanshuTayal @richie @nmrao @msiadak , can you help?
I dont have finished that. Do you have an example ?
@sonya_m wrote:Thank you for the advice Rao!
@stefankranz please let us know if you managed to implement the suggestion, or still looking for guidance?
Please check the screen shot.
Define the directory(where the file are available in the system) at suite level (You can use test case level as well, but my sample defines at suite level so that the same can be used in other test cases) with property DIRECTORY; and define FILE property at test case level.
Now, once you read the value from data source, assign that value to FILE property
By now, the FILE will have different value each time as you are modifying before Request step.
Use appropriate content type. Just focus on directory and file names, I would say.
Please refer documentation
https://www.soapui.org/scripting-properties/working-with-properties.html
https://www.soapui.org/scripting-properties/property-expansion.html
Thanks a lot Rao for explaining this!
@stefankranz were you able to achieve what you intended? Please share