DAST Authentication

Hi!

I have a new issue related to DAST.

My job looks like:

include:
  template: DAST.gitlab-ci.yml

variables:
  DAST_WEBSITE: https://sigecibis-qa.gcba.gob.ar/gestorcitas
  DAST_AUTH_URL: https://sigecibis-qa.gcba.gob.ar/gestorcitas/app/authentication
  DAST_USERNAME: CUIT
  DAST_PASSWORD: PASSWORD
  DAST_USERNAME_FIELD: j_username
  DAST_PASSWORD_FIELD: j_password

But, i have the following error during the job execution:

2019-05-06 15:19:25,301 Authenticate using webdriver https://sigecibis-qa.gcba.gob.ar/gestorcitas/app/authentication
2019-05-06 15:19:25,301 POST http://127.0.0.1:43014/session/88fe61fc-2a44-4ca0-9ef7-919cab244c74/url {"url": "https://sigecibis-qa.gcba.gob.ar/gestorcitas/app/authentication"}
2019-05-06 15:19:25,581 Finished Request
2019-05-06 15:19:25,582 POST http://127.0.0.1:43014/session/88fe61fc-2a44-4ca0-9ef7-919cab244c74/element {"using": "css selector", "value": "[id=\"j_username\"]"}
2019-05-06 15:19:55,628 Finished Request
2019-05-06 15:19:55,629 POST http://127.0.0.1:43014/session/88fe61fc-2a44-4ca0-9ef7-919cab244c74/element {"using": "css selector", "value": "[name=\"j_username\"]"}
2019-05-06 15:20:25,646 Finished Request
2019-05-06 15:20:25,647 Authentication Error
2019-05-06 15:20:25,647 Message: Unable to locate element: [name="j_username"]

It happens because in POST, i will have to add more variables.

I attach a file with the image of the ZAP desktop version, with the right configuration for POST.

How can I add these variables?

Edited May 15, 2019 by Rémy Coutable
Assignee Loading
Time tracking Loading