CubicTest 录制测试
上一篇 /
下一篇 2009-02-17 11:07:44
/ 个人分类:Selenium RC
Recording tests
Alternatively to creating a test manually (as described above), tests can be recorded by interacting with an existing web application.
The recorder requires that Firefox or Opera is installed.
To record a test,
- Right clickin the background of a Test and choose"Record"(or right click on an arbitrary Page/State and choose "Record from this Page/State")
Firefox/Opera will open and load the start point URL. - To record page element assertions,right click on the page in Firefoxon "page elements" (e.g. a link) and choose e.g. "Assert link present".
To record text-present-assertions, first highlight/select the text and then right click and choose "assert text present". - To record user interactions,interact with the page as normal. The interactions will be recorded, and "click" events will trigger the transition to a new state. Text input will not automatically trigger a transition to a new state. Observe that user interactions are added to the Cubic test model in the background.
To stop recording,
- Right click in the graphical test editor -> toggle "Record" off.
收藏
举报
TAG: