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

オープン
#1,696 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java, vscode

調査の方向性

提供された Scanner 入力と Debug Console 出力を使用して、まず VS Code で Maven JUnit/Cucumber のデバッグ実行を再現します。デバッグセッションが標準入力と報告された認識されない evaluate request をどのように処理するかを調査します。対応している入力ワークフローを文書化するか、制限事項を確認して明確に報告できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

ai-triaged enhancement junit low-priority maven question test-debugging

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
主要言語
TypeScript
スター
340
フォーク
173
平均マージ
1日 2時間
マージ済み PR(30日)
17

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/vscode-java-test のほかの issue

microsoft/vscode-java-test の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。