microsoft / microsoft/vscode-java-test
Unable to give inputes in debug console vs code while running junit with cucumber java project
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 340
- Forks
- 173
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 18
Description
I'm using java maven selenium with cucumbe project. i need to give input like otp and some other input while executing the test case. In vs code unable to give, my test is running in Debug console so how should i give there.
Getting this issue
Fail or Pass
pass
Unrecognized request: { _request: evaluate }
can someone please help me on this issue.
my sample code
`package cucumber.Options;
import io.cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@io.cucumber.junit.CucumberOptions(features = "src/test/java/features/driverTesting.feature", glue = {
"stepDefinations" }, stepNotifications = true,
dryRun = false,
plugin= {"html:target/cucumber.html", "json:target/cucumber.json",
"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:",
"rerun:target/failed_scenarios.txt"}
)
public class DriverTesting {
}`
`Feature: Browser Driver Testing
Scenario: Verify the jenkins browser
Given Verify the browser in jenkins`
` @Given("Verify the browser in jenkins")
public void verifyTheBrowserInJenkins() throws InterruptedException, IOException {
Scanner scanner = context.objectManager.getScanner();
System.out.println("Fail or Pass");
TestContext.txn_status = scanner.nextLine();
System.err.println(TestContext.txn_status);
}`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Maven JUnit/Cucumber debug run in VS Code using the provided Scanner input and Debug Console output. Investigate how the debug session handles standard input and the reported unrecognized evaluate request; done means documenting the supported input workflow or confirming and clearly reporting the limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- developer-experience, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100