??????????????δ???????
???????????? ???????[ 2013/2/17 10:14:20 ] ????????
????????????????????????????κ???????UI????????????????????????????????C/S???????????????????UI???????????????????????????????windows???????????web???????????????????????????????д???????????????????????????????????淶????????Щ??????id????name??????????????????????????????????????п?????????????????????????xpath????????????????xpath???????????????п????????tester????????????????????????????????????????;????xpath??????????????л?????Щ????????????????????????????(???tester?????????????????????xpath??е?????)??
??????????????????????id??(?????)????????????(?????)????????????????????????????????“????”????е??????С??????????????????(?????“???”??“????”??“??”??“??????”)???????????м????html????????????
???????????????????????п??????id??name????????????link;
????link????url?а??????????????ID?????????????????м??????????????341????????????м?????????????ID??
????????????????????????г???????????????????????????ID?????????????????????????title/name????????????????test case???????????????????????????????ID???????????????????title/name??????ID???????????????????????????????????£?xpath????????????(??????????漰????????iframe????????????????д???????????????)
??????????????????????????????????????function????????????????????????????д?????function?????????????????????????????????
????????????????????????????????????????????????????????“???????”??????????(??C/pascal)?????????д??????????????С???????test case ???漰???????棬???????????case?ж????????? clickAndWait btnG?????????????????????btnG??????buttonG??????? clickAndWait btnG??verifyTextPresent ???????????? clickAndWait XXX??step????????????case?????????
?????????????????????????????1??????100??1000???????UI????????????????????100??case?????????90??????????????10????????????????????????????????????????′λ??????????????????????——??????????????????????????????????????????????????????????????
???????????????????????????????????????μ?webdriver???????????????????????Σ????????????????????e????????????????????
???????????????????????????????????????????У??????????????????е?browser.find_elmenet_by_id(xxxx).click() ????????????????????????ж???е????????и???????????????????/???????????????????????????????Щ???????е?3GL/4GL?????????????????????????????????????????????????????????????????????????robot framework(??robot??rational robot)????
??????????????? keyword ??????????? FOR ?????
:FOR |
${var} |
IN |
@{SOME LIST} |
|
Run Keyword If |
'${var}' == 'EXIT' |
Exit For Loop |
|
Do Something |
${var} |
|
???????????????????д??????????
${time} = |
Get Time |
|
|
|
${secs} = |
Get Time |
epoch |
|
|
${year} = |
Get Time |
return year |
|
|
${yyyy} |
${mm} |
${dd} = |
Get Time |
year??month??day |
@{time} = |
Get Time |
year month day hour min sec |
|
|
${y} |
${s} = |
Get Time |
seconds and year |
|
????import ?????:
Import Library |
MyLibrary |
|
|
|
Import Library |
${CURDIR}/Library.py |
some |
args |
|
Import Library |
${CURDIR}/../libs/Lib.java |
arg |
WITH NAME |
JavaLib |
????????????:
Import Resource |
${CURDIR}/resource.txt |
Import Resource |
${CURDIR}/../resources/resource.html |
???????????:
${escaped} = |
Regexp Escape |
${original} |
@{strings} = |
Regexp Escape |
@{strings} |
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11