Open utkarssh01 opened 3 years ago
Can you please surround your code with triple bacticks (fenced code blocks)? I find this too hard to read.
Hi @aslakhellesoy
I am new learner and also getting the same issue, not able to resolve. Please help me out
I am also getting the same issue if someone could help it would be great
Issue: Test class not found in selected project
Steps to recreate:
But when I run the Runner file , it shows all tests are passed but when I click on any of the test it shows the error "Test class not found in selected project".![image](https://user-images.githubusercontent.com/75351740/120058044-698cd800-c065-11eb-8a3b-1c2a4d1bec6b.png)
For example Below is my feature file: Feature: Select Site <<< In order to Tableau select site As a user I want to choose a Tableau Site to generate reports
Scenario Outline: Verify if Tableau allows user to select a Site Given user navigates to Tableau Site Page When user validates the homepage title Then user will click on search box And user will enter the search string | |
Then user user will select the site
| |
And user will successfully reach to home page
Examples:
| searchSite | selectSite |
| Test1 | Test1 |
Below is my Step Definition file for the same <<< package StepDefinitions;
import io.cucumber.java.en.Given; import io.cucumber.java.en.Then;
public class SelectSiteStep { @Given("^user navigates to Tableau Site Page$") public void user_navigates_to_tableau_site_page() throws Throwable{ // Write code here that turns the phrase above into concrete actions System.out.println("user navigates to Tableau Site page"); }
}
Below is my Test runner file <<< package com.web.automation.base;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber; import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class) @CucumberOptions ( features = {"src/test/java/Features"}, glue = {"StepDefinitions"}, monochrome = true, plugin={"junit:reports/junit/reports.xml",
"pretty:target/cucumber-pretty.text", "html:target/cucumber-html-report", "json:target/cucumber.json", "usage:target/cucumber-usage.json",}
) public class TestRunner {
}
Please let me know why I'm seeing that error "Test class not found in selected project".