0% found this document useful (0 votes)
40 views9 pages

52.2. Options - Summary - PDF

Uploaded by

kotten7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views9 pages

52.2. Options - Summary - PDF

Uploaded by

kotten7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

@RunWith(Cucumber.

class)
@CucumberOptions(
features = "src/test/java/resources/features/"
,glue={"stepDefinition"}
,tags = {}
,dryRun = true
,monochrome = false
,plugin = { "pretty", "html:target/cucumber",
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}
@RunWith(Cucumber.class) #Mandatory when setting up a Cucumber runner class
@CucumberOptions(
features = "src/test/java/resources/features/"
,glue={"stepDefinition"}
,tags = {}
,dryRun = true
,monochrome = false
,plugin = { "pretty", "html:target/cucumber",
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}
@RunWith(Cucumber.class)
@CucumberOptions( #Basically settings for your tests!
features = "src/test/java/resources/features/"
,glue={"stepDefinition"}
,tags = {}
,dryRun = true
,monochrome = false
,plugin = { "pretty", "html:target/cucumber",
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/java/resources/features/" #Location of feature file(s)
,glue={"stepDefinition"}
,tags = {}
,dryRun = true
,monochrome = false
,plugin = { "pretty", "html:target/cucumber",
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/java/resources/features/"
,glue={"stepDefinition"} #Location of step file(s)
,tags = {}
,dryRun = true
,monochrome = false
,plugin = { "pretty", "html:target/cucumber",
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/java/resources/features/"
,glue={"stepDefinition"}
,tags = {“@SmokeTest”} #Flexibility to target specific tests
,dryRun = true
,monochrome = false
,plugin = { "pretty", "html:target/cucumber",
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/java/resources/features/"
,glue={"stepDefinition"}
,tags = {“@SmokeTest”}
,dryRun = true #Boolean value, checks feature file(s) have matching step
,monochrome = false definition(s) (True = will just check whether matching
steps are visible but will not execute the code
,plugin = { "pretty", "html:target/cucumber",
within the steps).
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/java/resources/features/"
,glue={"stepDefinition"}
,tags = {“@SmokeTest”}
,dryRun = true
,monochrome = false #Boolean value, alters the output of the console window
(Making readable or non readable)
,plugin = { "pretty", "html:target/cucumber",
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/java/resources/features/"
,glue={"stepDefinition"}
,tags = {}
,dryRun = true
,monochrome = false
,plugin = { "pretty", "html:target/cucumber", #Used to generate reports
"json:target/cucumber.json",
"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"
})

public class TestRunner {


}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy