microsoft / microsoft/vscode-java-test

Unable to give inputes in debug console vs code while running junit with cucumber java project

Aperta
#1,696 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

ai-triaged enhancement junit low-priority maven question test-debugging
Lingua principale
TypeScript
Stelle
340
Fork
173
Merge medio
1g 19h
PR unite (30g)
18

Descrizione

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);

}`
Screenshot 2024-06-04 at 9 59 55 PM Screenshot 2024-06-04 at 10 00 28 PM

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo l’esecuzione di debug Maven JUnit/Cucumber in VS Code usando l’input Scanner fornito e l’output di Debug Console. Analizza come la sessione di debug gestisce lo standard input e la evaluate request non riconosciuta segnalata; il lavoro è completato quando documenti il workflow di input supportato oppure confermi e segnali chiaramente la limitazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, vscode
Ambito
developer-experience, testing
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.