You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Cucumber 'Feature file '-> 'Examples' , how to set path for CSV file.
Sample.feature
Feature:Launch an app
Scenario Outline:Validation of the application
Given User navigates to application
When User logs in using valid appname '<Name>'
Examples:
@sources:src/test/resources/data_tables/temp.csv
| Name |
In Cucumber 'Feature file '-> 'Examples' , how to set path for CSV file.
Sample.feature
Junit Runner:
package definitions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import cucumber.api.CucumberOptions;
import org.junit.runner.RunWith;
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(features = "src/test/resources/features/Sample.feature" )
public class AcceptanceTestSuite{
}
Used CSV file
temp.csv
name,
Google,
But I didnt retrieve values from temp.csv file, result was 0 Scenarios 0 Steps 0m0.000s
2.Also wanted to know in Java Cucumber with Serenity, how to readvalues from CSV file that is mentioned in Feature file.
Kindly help to sort out this issue.
The text was updated successfully, but these errors were encountered: