Contributions
Ability to choose node value input type
Hello, I'd like the option when using SoapUI Pro to be able to specify in the which node value input type (string/integer/boolean) to sendin the JSON REST request. Right now to work around this we must manually edit the request to remove the "" around any data from our DataSource that cannot be sent as a string, rendering the Outline useless. This can be very time consuming to edit the request manually. Thank you982Views0likes0CommentsRe: Create groovy script to generate Luhn Algorithm
Hi Sanj, I am looking to create the data, rather than validate it. There really are not a lot of resources specific to creation that I've found. One of my coworkers had created a Google app script to generate the data so that it can be used in Sheets, and I've extracted the script, but am having one heck of a time converting it to Groovy. function RanSin () { for (;;){ var n=9, sum=0, rn, ranSin, nextDigit, total=0; var evenDigit = false; while (n>0){ rn = Math.floor(Math.random()*(9-1))+1; sum+=rn; if ( n == 1){ break; } sum*=10; n-=1; } ranSin=sum; while ( ranSin > 0 ) { nextDigit = ranSin %10; ranSin = Math.floor(ranSin / 10); if (evenDigit) { nextDigit = 2* nextDigit; nextDigit = Math.floor(nextDigit / 10) + (nextDigit % 10); } total += nextDigit; evenDigit = !evenDigit; } if ( 0 == (total%10)){ return sum; break; } } }7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes0CommentsCreate groovy script to generate Luhn Algorithm
I am looking to create a groovy script to generate data that follows the Luhn Algorithm. I need to be able to create Canadian Social Insurance Numbers and Credit Card numbers that are valid for testing. Wondering if anyone has done this before that could help me out please?7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews0likes3Comments