Ranorex is not making actions when executed with Jenkins
Posted: Mon Nov 30, 2020 9:05 pm
Hello together,
i have really annoying issue that (web-)tests which are executed by Jenkins (not as a service!) are not going to take actions as defined in the modules.
For example:
- Browser will open but no buttons (e.g. login-button) will be clicked (They can be identified without doubt, XPath also correct and robust!)
- "Empty" key sequences BUT ranorex is switching the input-field (e.g. username / password mask)
Setup:
- Ranorex running with latest version
- Ranorex Plugin for Browser and Jenkins with latest update
- Jenkins slave on Virtual Machine (= test environment to run tests on it)
- Jenkins is not started as a service!
Facts:
- Web-Tests definitely did have worked before with Jenkins, but i stopped executing the tests for x months because there was no need
- Active User Session = true! (on VM) (No black screens in test-report)
- Other jenkins project (SAP GUI) is working with -similiar- project settings and -similiar- settings in jenkins-project
- It doesn't matter if i'm doing delays or wait times.. even overdoings 10 second wait times or WaitForExists() in user code modules doesn't resolve the issue
- When running the tests locally and manually via testproject.exe everything works fine (same as on the VM!), but test-project executed via jenkins is not working
- ranorex and browser are started as administrator on VM
Edit:
- Issue appears only with Chrome!
- When I'm executing the test on the vm locally without jenkins it works fine but executed via jenkins not
- I've also made a simple test on www.google.de (typing in "test" in search-field, search and validate something) to verify that it's not caused by a inaccurate xpath or something else which is also working locally but not when executed via jenkins
I'm really confused about this situation. Has anyone made similiar experiences or came in contact with issues like this?
Best regards and thanks in advance!
Julez
i have really annoying issue that (web-)tests which are executed by Jenkins (not as a service!) are not going to take actions as defined in the modules.
For example:
- Browser will open but no buttons (e.g. login-button) will be clicked (They can be identified without doubt, XPath also correct and robust!)
- "Empty" key sequences BUT ranorex is switching the input-field (e.g. username / password mask)
Setup:
- Ranorex running with latest version
- Ranorex Plugin for Browser and Jenkins with latest update
- Jenkins slave on Virtual Machine (= test environment to run tests on it)
- Jenkins is not started as a service!
Facts:
- Web-Tests definitely did have worked before with Jenkins, but i stopped executing the tests for x months because there was no need
- Active User Session = true! (on VM) (No black screens in test-report)
- Other jenkins project (SAP GUI) is working with -similiar- project settings and -similiar- settings in jenkins-project
- It doesn't matter if i'm doing delays or wait times.. even overdoings 10 second wait times or WaitForExists() in user code modules doesn't resolve the issue
- When running the tests locally and manually via testproject.exe everything works fine (same as on the VM!), but test-project executed via jenkins is not working
- ranorex and browser are started as administrator on VM
Edit:
- Issue appears only with Chrome!
- When I'm executing the test on the vm locally without jenkins it works fine but executed via jenkins not
- I've also made a simple test on www.google.de (typing in "test" in search-field, search and validate something) to verify that it's not caused by a inaccurate xpath or something else which is also working locally but not when executed via jenkins
I'm really confused about this situation. Has anyone made similiar experiences or came in contact with issues like this?
Best regards and thanks in advance!
Julez