Hi, Iām wondering if itās possible to use an IF statement for an Environment in a Pre Request Script? The reasons for this, is when my GET query is ran, itās pre populated with an id to search for based on an environment, which canāt be changed by me as itās in use from other users.
So what Iām wanting to do is, have an IF statement, where when a specific Environment is chosen, the query param fields are pre populated with what i determine in the Pre Request script. I had a stab at writing something to see if it would work, and it didnāt.
The āGalaxy APIās 101ā course gets you used to sending requests and the GUI.
The āGalaxy Testing and Automationā gets you used to testing your responses and using variables, basic scripting, etc.
Postman uses JavaScript under the hood, If you are going to be scripting, I would also recommend learning some JavaScript basics. WC3 schools is a good place to start.