Skip to content

Commit 7e6d03c

Browse files
committed
Examples update
1 parent 5a8f376 commit 7e6d03c

5 files changed

Lines changed: 45 additions & 2 deletions

File tree

example-cucumber6-testng/src/test/java/com/epam/reportportal/example/cucumber6/BasicRunTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
import io.cucumber.testng.CucumberOptions;
2121

2222
@CucumberOptions(plugin = "com.epam.reportportal.cucumber.ScenarioReporter",
23-
features = "src/test/resources/features/attributes", glue = "com.epam.reportportal.example.cucumber6.attributes")
23+
features = "classpath:features", glue = "com.epam.reportportal.example.cucumber6.basic")
2424
public class BasicRunTest extends AbstractTestNGCucumberTests {
2525
}

example-cucumber6-testng/src/test/java/com/epam/reportportal/example/cucumber6/attributes/Stepdefs.java renamed to example-cucumber6-testng/src/test/java/com/epam/reportportal/example/cucumber6/basic/attributes/Stepdefs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.epam.reportportal.example.cucumber6.attributes;
17+
package com.epam.reportportal.example.cucumber6.basic.attributes;
1818

1919
import com.epam.reportportal.annotations.attribute.Attribute;
2020
import com.epam.reportportal.annotations.attribute.Attributes;
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright 2021 EPAM Systems
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.epam.reportportal.example.cucumber6.basic.dummy;
18+
19+
import io.cucumber.java.AfterStep;
20+
import io.cucumber.java.BeforeStep;
21+
import io.cucumber.java.en.Given;
22+
import io.cucumber.java.en.Then;
23+
import org.slf4j.Logger;
24+
import org.slf4j.LoggerFactory;
25+
import org.testng.SkipException;
26+
27+
public class EmptySteps {
28+
private static final Logger LOGGER = LoggerFactory.getLogger(EmptySteps.class);
29+
@Given("I have empty step")
30+
public void i_have_empty_step() {
31+
LOGGER.info("Inside 'I have empty step'");
32+
}
33+
34+
@Then("I have another empty step")
35+
public void i_have_another_empty_step() {
36+
LOGGER.info("Inside 'I have another empty step'");
37+
}
38+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Feature: Test dummy scenario
2+
3+
Scenario: The scenario
4+
Given I have empty step
5+
Then I have another empty step

example-cucumber6-testng/src/test/resources/features/attributes/belly.feature renamed to example-cucumber6-testng/src/test/resources/features/belly.feature

File renamed without changes.

0 commit comments

Comments
 (0)