?????????????RFT??swing????????????????????????????ù?????????????RFT?????????????????У????RFT??????????У???????????????????????????????????????????????????????????????RFT????????????????????к??????????????????

?????????????????????????

??????????????????GUI????????????ü?????????£?

????1???????AppObject???洢????find()???????????巽????????????????????????????java??????????????????????????????????

????2????????AppLib???洢???????????????????????????????Lib??Method??Lib???????????????????????Method??洢?????Щ??????????????????????????磺???????д?????????д????????????????????(Robot?????)???

????3????????AppCase?????ò?????????в???????????????????????????????????????????????????????????????????

????????????????????????????

??????????????????????????????

????1??AppObject????????????object.java??????洢???е????????????????

??????????£?

????////////??????//////////

????//???????????????

????//????????????

????//???GuiTestObject

????public GuiTestObject getButton(String buttonName)

????{

????RootTestObject root = getRootTestObject();

????TestObject[] to = root.find(atDescendant(".class"??"javax.swing.JButton"??"accessibleContext.accessibleName"??buttonName));

????return new GuiTestObject(to[0]);

????}

????///////????????//////

????//????????????????

????//??????

????//???WTextField

????public WTextField getTextField(String LabelName)

????{

????RootTestObject root = getRootTestObject();

????TestObject[] to = root??find(atDescendant(".class"??"javax.swing.JTextField"??".priorLabel"??LabelName));

????return new WTextField(to[0]);

????}

??