microsoft / microsoft/vscode-java-test
Unable to give inputes in debug console vs code while running junit with cucumber java project
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 340
- Forks
- 173
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 18
Descripción
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);
}`
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza reproduciendo la ejecución de depuración de Maven JUnit/Cucumber en VS Code usando la entrada de Scanner proporcionada y la salida de Debug Console. Investiga cómo la sesión de depuración gestiona la entrada estándar y la evaluate request no reconocida indicada; se considera completado cuando documentes el flujo de entrada compatible o confirmes y comuniques claramente la limitación.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, vscode
- Área
- developer-experience, testing
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100