📄 readme
字号:
-------------------------------------------------------------------------------dojox.robot.recorder-------------------------------------------------------------------------------Version 0.1Release date: 2008-07-30-------------------------------------------------------------------------------Project state: experimental-------------------------------------------------------------------------------Project authors Mark Hays-------------------------------------------------------------------------------Project descriptionWriting automated test cases takes time, and DOH is no exception. You have tolook up element ids, invent dojo.queries for elements with no id,figure out exactly how many pixels to move the mouse . . . the list goes on.This recorder module enables DOH test case writers to create complete DOH testscripts directly from their actions and input on a Web page. Simply drop thegenerated code into your test page, set a pass condition, and the test willrepeat your actions.-------------------------------------------------------------------------------Dependencies:dojo-------------------------------------------------------------------------------DocumentationSee installation instructions below to prepare a test page for recording.To record a test, click in an area of the document with no dojo.stopEventsand press CTRL-ALT-ENTER in the main window. You will get a verification alertwhen you successfully start the recorder. Then you can interact with the Webpage and the recorder will monitor your actions. It's usually good to record onetest per widget instance per type of interaction (keyboard vs mouse for instance)you are testing.After you finish interacting with the Web page, click out of any dojo.stopEventsand press CTRL-ALT-ENTER again. You will see a box containing the generated source code for your recording. Copy this into a dojo.addOnLoad on the same page to register the test with DOH. Replace the /*Your condition here*/ text with a JS condition thatindicates that the test passed. Again, having multiple small tests will help youkeep the condition small. Add a doh.run() call after you register all of your teststo make them execute when you load the page.-------------------------------------------------------------------------------Installation instructionsTo ready the recorder for a particular page, add this line to your dojo.requires:dojo.require("dojox.robot.recorder");You can safely remove this line after you are finished recording your tests.-------------------------------------------------------------------------------Additional NotesKnown limitations:- Content in an iframe might not report events to the recorder.- keyDown/keyUp events are supported by DOH, but not by the recorder. If you hold a key down, it will generate lots of keyPress events instead. Simply change these to one keyDown call yourself.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -