Does anyone know of a way that I can write to my notepad file, but depending on the environment it is running on, what notepad file to write to?
So for example, I've automated an account setup, as it completes it writes to a notepad with the location held in the constants class. I'm looking to know if I set up multiple locations in the constants class, can I switch which location the file is stored in based on the environment that the tests are currently being ran in?
IF URL = SYS THEN writeToNotepadSYS IF URL = UAT THEN writeToNotepadUAT ELSE writeToNotepadPPT
Some bad psuedocode that I hope will help clear up my issue.