-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHighPriorityRegressionTest.java
More file actions
27 lines (23 loc) · 990 Bytes
/
Copy pathHighPriorityRegressionTest.java
File metadata and controls
27 lines (23 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.mitigram.web.regressiontests;
import com.mitigram.web.TestBase;
import io.cucumber.testng.CucumberOptions;
import io.cucumber.testng.FeatureWrapper;
import io.cucumber.testng.PickleWrapper;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@CucumberOptions(
features = {"src/test/resources/com/mitigram/web/features"},
glue = {"com.mitigram.web.stepdefinitions"},
tags = "@high",
plugin = { "pretty", "html:build/cucumber-reports/regression-high-priority-tests.html" }
)
public class HighPriorityRegressionTest extends TestBase {
@DataProvider
public Object[][] scenarios() {
return testNGCucumberRunner.provideScenarios();
}
@Test(priority = 1, dataProvider = "scenarios", description = "High Runs Cucumber Feature")
public void highPriorityScenario(PickleWrapper pickle, FeatureWrapper cucumberFeatureWrapper) {
testNGCucumberRunner.runScenario(pickle.getPickle());
}
}