Forum Discussion
ameesh1984
Contributor
Attached it
It basically takes postman variables like host , keys etc and does some stripping or modfications to it
It was basically meant for pre setup before the test
I am looking to convert this to groovy so that it will work in my existing soap ui project
ameesh1984
4 years agoContributor
- ameesh19844 years agoContributor
Any simple way to convert this to groovy ?
- richie4 years agoCommunity HeroHey ameesh1984,
I had a search for this about 2 years ago and couldnt find anything. I just searched and it appears there may be a couple of js to groovy converters but i doubt you can just paste the js code in, hit convert and out comes some spffy groovy code that works right away.
I had a quick look at the js and it doesnt look that complicated (well...i could read it, which should tell you how basic it appears).
If i were you id try and identify what is going on (e.g. "vars attribute" is defining new variable in js, which is like "def attribute" in groovy) and then search for the groovy equivalent.
Im even tempted to have a go at this myself, but i dont want you to rely on me cos my coding bites, so i suggest having a to yourself unless one of the scripters has js AND groovy
Ta
Rich
Ta
Rich- ameesh19844 years agoContributorYes I am not sure about JS to groovy conversion myself
Can anyone help on this ?
Related Content
- 4 years agoTommyTester
- 10 months agoMussieG
- 3 years agoMis3
- 5 years agodinojadhav
Recent Discussions
- 14 hours agoGuhan-B
- 5 days agoruchisingh