Given your current code, I would suggest that you replace all the .VerifyX()
methods to .GetX()
methods and instead assert the two values in the script. For example,
Lapeyre_frMainPage.VerifyREFERENCE(win.get(i).get(8));
would be changed to
assertEquals("Verify REFERENCE 1", win.get(i).get(8), Lapeyre_frMainPage.GetREFERENCE());
.GetREFERENCE()
would return the value from the UI instead of doing the verification.
For this to work, you need to change each of the VerifyX()
methods to return the string from the UI. From your code in the comments, here's an example.
public void GetREFERENCE()
{
return tool.searchUsingXPath("//tbody//tr[1]//td//div[2]").getText().trim();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…