收到此错误:java.lang.IllegalArgumentException: Keys to send should be a not null CharSequence.如何解决此问题?使用 TestNG Framework 使用的 POM 设计模型请找出我添加的两个 java 类的以下代码片段下面的代码片段是 LoginPageTest Java 类package com.crm.qa.testcases; import org.testng.Assert;import org.testng.annotations.AfterMethod;import org.testng.annotations.BeforeMethod;import org.testng.annotations.Test;import com.crm.qa.base.TestBase;import com.crm.qa.pages.HomePage;import com.crm.qa.pages.LoginPage;public class LoginPageTest extends TestBase{ LoginPage loginpage; HomePage homepage; public LoginPageTest() { super(); } @BeforeMethod public void setup() { initialization(); loginpage = new LoginPage(); } @Test(priority=1) public void loginpagetitletest() { String title = loginpage.ValidatePageTitle(); Assert.assertEquals(title, "Login"); } @Test(priority=2) public void loginTest() { homepage = loginpage.login(prop.getProperty("emailId"),prop.getProperty("password")); } @AfterMethod public void Teardown() { driver.quit(); }}
添加回答
举报
0/150
提交
取消