Need Groovy script!

  • Állapot: Closed
  • Díj: $289
  • Beérkezett pályamű: 2
  • Nyertes: wdworks

A verseny összegzése

We need to have this shell script translated to Apache Groovy language.
The script does first a request to a web application firewall to get a Jason Web Token including a SAML assertion. This SAML assertion will be used to create a SOAP request to send to a SAP interface. The final requests will be executed from ReadyAPI from SmartBear. This infrastructure is already set-up. We just need this last groovy script.
The shell script is attached as well an example excel file to get the needed params from.

In case of questions please contact me!
Best,
Tom

Ajánlott készségek

Munkaadói értékelés

“Any time again!”

Profilkép tux007, Switzerland.

A verseny legjobb pályaművei

További pályaművek

Nyilvános pontosítófelület

  • ytheoharis
    ytheoharis
    • 6 év telt el

    Hi, I try to upload my script, but I can not. The error message is "Supported files types are: JPG, PNG, GIF". While the script is a ".goovy" file. I guess you need to change the upload file type.

    • 6 év telt el
  • wdworks
    wdworks
    • 6 év telt el

    NameID maps to personid right?

    • 6 év telt el
    1. wdworks
      wdworks
      • 6 év telt el

      Well were is it supplied then? I see only sub onlinecontract and roles is supplied to the WAF. Or we should check if assertion received contains the personid from xls?

      • 6 év telt el
    2. tux007
      A verseny kiírója:
      • 6 év telt el

      Hi Vasily, no the script should only send sub, onlinecontract, roles, etc. to the WAF. There's no need to check the received assertion.

      • 6 év telt el
  • ytheoharis
    ytheoharis
    • 6 év telt el

    Thanks for uploading the example files. I am getting there. Please extend the contest time by 1day. #extended

    • 6 év telt el
  • wdworks
    wdworks
    • 6 év telt el

    Judging by the shell script excel data is used only at the first stage to communicate with WAF and the final SOAP request body is static. Is that about right?

    • 6 év telt el
    1. tux007
      A verseny kiírója:
      • 6 év telt el

      That's correct - right!

      • 6 év telt el
  • ytheoharis
    ytheoharis
    • 6 év telt el

    Also, it would help if you could provide an example of tokens.txt. I need to figure out the syntax.

    • 6 év telt el
    1. tux007
      A verseny kiírója:
      • 6 év telt el

      added tokens.txt example file.

      • 6 év telt el
  • tux007
    A verseny kiírója:
    • 6 év telt el

    Hi guys, added tokens.txt example file. As well as a req.xml (as indicated in Shell script) to see how a final Soap request should look like.

    • 6 év telt el
  • tux007
    A verseny kiírója:
    • 6 év telt el

    Hi Ioannis, the script does just need to iterate 1 user at a time. The tokens.txt file just contains a coded Jason Web Token a coded SAML assertion.

    • 6 év telt el
    1. tux007
      A verseny kiírója:
      • 6 év telt el

      The SAML asertion will be sent within the header of the JWT. I can give you an example latest tomorrow.

      • 6 év telt el
    2. tux007
      A verseny kiírója:
      • 6 év telt el

      the JWT and the SAML assertion are separated by a newline in this file

      • 6 év telt el
  • tux007
    A verseny kiírója:
    • 6 év telt el

    Hi guys, I just extended the contest time. Best, Tom

    • 6 év telt el
  • tux007
    A verseny kiírója:
    • 6 év telt el

    Hi Kat, I'd like to have the pure groovy solution. Best, Tom

    • 6 év telt el
  • mallorieroberts
    mallorieroberts
    • 6 év telt el

    hey, are you interested in a quick patch (using groovy to execute sh) or a pure groovy solution? #extended

    • 6 év telt el
  • ytheoharis
    ytheoharis
    • 6 év telt el

    The xls file contains information about 2 users (30000036362 and 30000000001). Does the script need to iterate over all users in the input xls and do the same requests for each one of them? Or can we assume that the xls contains information about a single user?

    • 6 év telt el
  • deangelisalex
    deangelisalex
    • 6 év telt el

    Hello! I am almost done with the script, but I would like to test it first. Could you PM me some details?

    • 6 év telt el
    1. tux007
      A verseny kiírója:
      • 6 év telt el

      Hi, what details do you need? We have a soap service running here which is unfortunately no open to test.

      • 6 év telt el
  • urstealth
    urstealth
    • 6 év telt el

    do we need to dynamically fetch the values of SUB and other variables from excel file in groovy script? Or those variables will be stored in SoapUI as Groovyscript properties which can be directly used ?

    • 6 év telt el
    1. tux007
      A verseny kiírója:
      • 6 év telt el

      Hi Tariq, yes we need to dynamically fetch the values from the excel file. Right the props will be stores in SoapUI to directly use.

      • 6 év telt el

További hozzászólások

Így vágjon bele a versenyekbe

  • Tegye közzé a versenyét

    Indítson egy versenyt! Gyors és könnyű

  • Pályaművek százai várják

    Kapjon akár több száz pályaművet A világ minden szegletéből

  • Díjazza a legjobb pályázatot

    Díjazza a legjobb pályázatot Töltse le a fájlokat - csak egy kattintás!

Projekt közzététele vagy csatlakozzon hozzánk még ma!