Towelie
10 years agoOccasional Visitor
Validating a randomly generated name
Hello,
I am tottaly new to Soap UI. I got a task to make a project, that would create a test project in my Testlink. The test project should always have a different name, so that there would be no chance of deleting the previous one. My idea was to give the project the name TestProject# and the number would be randomly generated.
Like this:
TestProject#${=(int)(Math.random() * 90000 + 10000)}
the thing is that I have no knowledge of how to validate if the name already exists. The project I got requests it simply like this:
<member> <name>testprojectname</name> <value> <string>${#Project#projectName}</string> </value> </member>
But this makes it generate the number again, so the name doesn't match and the validation obviously can't pass.
So the question is, how can I make the validation pass or if there is some different method that would generate the project name.
Thank you