UI Recorder is a UI test case recorder such as Selenium IDE.
UI Recorder is much powerful then Selenium IDE!
UI Recorder is easily for use.
- Support all user operation: key event, mouse event, alert, file upload, drag, svg
- No interference when recording: the same as self test
- Record test file saved in local
- Support kinds of expect: val,text,displayed,enabled,selected,attr,css,url,title,cookie,localStorage,sessionStorage
- Support mock: fake.js
- Support common test case: one case call another
- Support i18n: en, zh-cn, zh-tw
- Test file base on NodeJs: jWebDriver
-
Install NodeJs
-
Install UI Recorder
npm install uirecorder -g
-
Init config
uirecorder init
-
Start recorder test case
uirecorder start
-
Run test case
npm install mocha -g
npm install jwebdriver expect.js mocha-generators faker --save-dev
mocha *.spec.js
-
Record
common.mod.js
-
Record
test.spec.js
- please input
common.mod.js
in recorder start page or insert test case in page - After
common.mod.js
loaded, then recorder other steps
- please input
-
mocha *.spec.js
- UI Recorder only support native file compont, no support for Flash
<input type="file">
must place on top layer- File base path:
c:\uploadFiles\
- don't change url in location bar
- don't change focus by TAB key
- don't use dblclick, WebDriver no support
- don't select text by mouse, WebDriver no support
- don't focus to background window manualy
- don't click useless DOM, only record key steps
- create new folder in current: screenshots
mocha test/*.spec.js
- Screenshots saved:
./screenshots/*.png
- please dont't use random id or name
- please name a id for DOM area
- add label for form
- please listen click event instead of mousedown
HTMLHint is released under the MIT license:
The MIT License
Copyright (c) 2016 alibaba.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- colors: https://github.com/Marak/colors.js
- commander: https://github.com/tj/commander.js
- inquirer: https://github.com/sboudrias/Inquirer.js
- jWebDriver: https://github.com/yaniswang/jWebDriver
- async: https://github.com/caolan/async
- Faker.js: https://github.com/marak/Faker.js/