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

Đang mở
#1,696 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java, vscode

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện phiên chạy debug Maven JUnit/Cucumber trong VS Code bằng đầu vào Scanner được cung cấp và đầu ra của Debug Console. Điều tra cách phiên debug xử lý đầu vào tiêu chuẩn và evaluate request không được nhận dạng đã được báo cáo; hoàn tất nghĩa là ghi lại workflow đầu vào được hỗ trợ hoặc xác nhận và báo cáo rõ ràng về giới hạn này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
340
Fork
173
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
18

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/vscode-java-test

Tất cả issue của microsoft/vscode-java-test

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.