Skip to content

Commit

Permalink
Multiple fixed in the piepline file
Browse files Browse the repository at this point in the history
  • Loading branch information
jose.fernandez committed Apr 11, 2021
1 parent 05c5ed6 commit de8ff90
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 36 deletions.
29 changes: 13 additions & 16 deletions src/main/resources/archetype-resources/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
# This is an example configuration file for the gitlab CI pipeline
#
# This template shows how to run the different example tests that are provided
# when you first create the project.
# when you first create the project. Use this template as an starting point
# for running your own tests on the gitlab CI pipeline
#
# Use this template as an starting point for running your own tests on the gitlab
# CI pipeline
# IMPORTANT! The docker images used here are from the internal veepee artifactory
# (registry.vptech.eu) so you may need to add you credentials to the pipeline
# configuration to avoid an unauthorized error when using them.
#
# Check the README file to see all alternative ways of running your features.
#
Expand All @@ -14,7 +16,7 @@


# This template uses jdk11 for for running tests
image: maven:3.6.1-jdk-11
image: core-qms-docker.registry.vptech.eu/maven:3.6.1-jdk-11


# Cache downloaded dependencies and plugins between builds.
Expand All @@ -23,25 +25,20 @@ cache:
paths:
- .m2/repository


# Use a selenium standalone node for running selenium tests
services:
- name: selenium/standalone-chrome:3.141.59
alias: node


# In this example, each runner class is executed in a separate job inside the same stage "test". Jobs that are inside the same stage
# are executed in parallel. This is just an example that you can use as a starting point for executing your tests in the pipeline
# but you can organize your test in any other configuration.
# This is just an example that you can use as a starting point for executing your tests in the pipeline. Jobs that are inside the same stage
# are executed in parallel

UITest:
stage: test
services:
- name: core-qms-docker.registry.vptech.eu/selenium/standalone-chrome:3.141.59
alias: node
script:
- 'mvn verify -Dcucumber.filter.tags="@web" -DSELENIUM_GRID=http://node:4444/wd/hub'
artifacts:
paths:
- target/executions/**
- target/*.json
- target/executions/**
- target/*.json
when: always
expire_in: 4 weeks

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/archetype-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ To run all integration tests (runners)
mvn verify
```

To run a specific integration tests:
To run a specific integracion test (specific runner class):
```
mvn verify -Dit.test=${groupId}.${artifactId}.runners.CucumberRunnerIT
```

To run all integration tests but filter scenarios with by tag:
To run all integration tests but filter scenarios by tag:
```
mvn verify -Dcucumber.filter.tags="@web"
mvn verify -Dcucumber.filter.tags="@web or @rest"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
/*
* Copyright (C) 2015 Stratio (http://stratio.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ${groupId}.${artifactId}.utils;


Expand All @@ -25,11 +10,10 @@

/**
* Use this class to define your own TestNG hooks
* https://testng.org/doc/documentation-main.html#annotations
*/
abstract public class BaseTest extends BaseGTest {

protected String browser = "";

@BeforeSuite(alwaysRun = true)
public void beforeSuite(ITestContext context) {
}
Expand All @@ -44,7 +28,6 @@ public void beforeClass(ITestContext context) {

@BeforeMethod(alwaysRun = true)
public void beforeMethod(Method method) {
ThreadProperty.set("browser", this.browser);
}

@AfterMethod(alwaysRun = true)
Expand Down

0 comments on commit de8ff90

Please sign in to comment.