I am testing a web application using Katalon Studio and the test steps include loading a file into the application via a file chooser. I'm using WebUI.uploadFile()
to do this, but I have discovered that it takes only an absolute path.
This is a major problem because we have automated nightly testing run via Jenkins. Currently in the groovy test script, I have a hard-coded path to a test input file that is located in a specific directory on my workstation. This works fine when I'm running the test on my machine, but is obviously not going to work on any other system, including the Jenkins system.
It would be extremely useful if I could either
- access Katalon provided built-in variables (if they exist)
- specify a relative path
- reference an environment variable
- some other technique?
Any ideas on how to solve this problem would be really appreciated.
Aucun commentaire:
Enregistrer un commentaire