使用Functional Tester 实现自动化框架[4] 自动化测试
image_edw_detailsGif2().click();
text_rent2().click(atPoint(61,11));
browser_htmlBrowser(document_rentMortgageHtml(),
DEFAULT_FLAGS).inputChars("400");
text_tax().click(atPoint(39,18));
text_ins().click(atPoint(31,12));
browser_htmlBrowser(document_rentMortgageHtml(),
DEFAULT_FLAGS).inputChars("100");
text_misc().click(atPoint(25,8));
browser_htmlBrowser(document_rentMortgageHtml(),
DEFAULT_FLAGS).inputChars("50");
button__OKButton2().click();
//Verify total amount
rent_textVP().performTest(2.0, 20.0);
//Utilities Worksheet
text_utilities().click(atPoint(51,8));
image_edw_detailsGif3().click();
text_gas().click(atPoint(24,13));
browser_htmlBrowser(document_utilitiesHtml(),
DEFAULT_FLAGS).inputChars("67");
text_water().click(atPoint(24,15));
browser_htmlBrowser(document_utilitiesHtml(),
DEFAULT_FLAGS).inputChars("34");
text_trash().click(atPoint(16,15));
browser_htmlBrowser(document_utilitiesHtml(),
DEFAULT_FLAGS).inputChars("30");
text_tv().click(atPoint(18,9));
browser_htmlBrowser(document_utilitiesHtml(),
文章来源于领测软件测试网 https://www.ltesting.net/