问题运行这一小段代码时出现以下错误。我正在尝试学习 Selenium 和 Junit 自动化,因此遇到了一些问题。请帮忙。
错误java.lang.Exception: 类 jUnit.ParameterizedTest 上没有公共静态参数方法。
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.testng.annotations.Parameters;
import java.util.*;
// Step 1
@RunWith(Parameterized.class)
public class ParameterizedTest {
// Step 2, declare global parameters.
String username;
String password;
int zipcode;
// Step 3, make a constructor of the class with same no. of parameters as the
// the number of global parameters declared.
public ParameterizedTest(String username, String password, int zipcode) {
this.username = username;
this.password = password;
this.zipcode = …Run Code Online (Sandbox Code Playgroud)