Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We need to set up a Git repository containing the code along with the configuration for GitLab build CircleCI build process.


The tests are implemented in Robot Framework .robot files as follows.

Code Block
titlevalid_login.robot
collapsetrue
*** Settings ***
Documentation     A test suite with a single test for valid login.
...
...               This test has a workflow that is created using keywords in
...               the imported resource file.
Resource          resource.robot

*** Test Cases ***
Valid Login
    [Tags]  UI
    Open Browser To Login Page
    Input Username    demo
    Input Password    mode
    Submit Credentials
    Welcome Page Should Be Open
    [Teardown]    Close Browser 


The GitLab CircleCI configuration file .circleci/config.yml contains the definition of the build steps, including running the automated tests and submitting the results, as two different stages.

...

However, we do not want to have the Xray API credentials hardcoded in the GitLabCircleCI's configuration file. Therefore, we'll use environment variables defined in the project settings, including:

...