Test KO with Gitlab

Hello,

I have problems when I run my tests via gitlab when they are OK locally.

My tests are OK locally, but when I run them via gitlab I get errors for no reason. The errors are:

  • body is null
  • the first stage of the test is KO’d for no reason and the screenshot is blank (the test is launched, the connection to the URL is successful but the first click on the page is not made)
  • when changing pages on the same site, the next action is in error and there is no screen of the page.

The errors are random and don’t occur every time. I’ve tried retesting but it happens even on new tests.

I’ve tried adding longer page load times but nothing changes.

Has anyone had a similar problem? Or have any tips on how to solve it?

Thanks in advance and have a nice day

1 Like

What do you mean by saying “KO”?

1 Like

test is failed

1 Like

Could should share the error log?

You must have plenty of reasons of errors. For example, the version of browser on the GitLab server machine is too old, or the version of WebDriver module is not in sync with the brwoser on the server.

Please find the error messages in the log.

1 Like

I have differents errors, for exemple :

2023-07-04 09:56:04.900 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to click on object ‘Object Repository/01_UsageGeneral/cookiesPopup_boutonAccept’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/01_UsageGeneral/cookiesPopup_boutonAccept’

2023-07-04 10:02:22.703 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to click on object ‘Object Repository/07_InscriptionTiers/button_contactDelete’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/07_InscriptionTiers/button_contactDelete’

2023-07-04 09:55:58.552 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Cannot take screenshot (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot

at TempTestSuite1688464265240.run(TempTestSuite1688464265240.groovy:36)
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’

You should make a search in this forum for the key “Unable to click on object”. You would find quite a lot of previous incident reports with similar messages

1 Like

ok thanks you