TestProject Forum

Using shell commands on multiple operation systems

I am using the shell commands addon to execute a script in the terminal using “CURL” and “SED” commands to contact the email API and get the verification code but the problem here is that I have to use the same test on ubuntu and windows and the Linux commands don’t work on windows
is there a better way to do it or is there a way to execute a specific command based on the operation system?

I also installed Cygwin on windows and now all the commands run on the cmd but for some reason its failing when run by the agent

Problem solved
I only wanted to use “CURL” and “SED” commands so I used an addon to make a get request instead of curl and " Extract substring with regex" instead of sed