使用Functional Tester 实现自动化框架[3] 自动化测试
列表 4. 被记录的 Edwise.org 脚本
Package tests;
import resources.tests.edwise_recordHelper;
import com.rational.test.ft.*;
import com.rational.test.ft.object.interfaces.*;
import com.rational.test.ft.script.*;
import com.rational.test.ft.value.*;
import com.rational.test.ft.vp.*;
public class edwise_record extends edwise_recordHelper{
public void testMain(Object[] args){
//Start Student Calculator
startApp("http://www.edwise.org/edwise/edFundFrame.html");
//EdWise - Student Calculator Home Page
image_next().click();
//Edwise - Enter Name
browser_htmlBrowser(document_edWiseStudentCalculat(),
DEFAULT_FLAGS).inputChars("Mike");
image_next2().click();
//Edwise - Calculate Budget
//Annual Income
list_incomeBy().click();
文章来源于领测软件测试网 https://www.ltesting.net/