当前位置:网站首页>Chrome realizes automated testing: recording and playback web page actions
Chrome realizes automated testing: recording and playback web page actions
2022-07-16 07:21:00 【InfoQ】
Chrome Browsers are really scary , It will roll up the relevant gadgets . Since its birth , Created one legend after another , Now you can see the operating system based on it chrome os , You can also buy a laptop that uses it as a system .
lately , The new version supports recording and playback . With this function , You can record all the operations in the browser , Save to local , Then run repeatedly through playback .
This is really the gospel of lazy cancer patients , Say goodbye to repetitive work easily . Whether it is automated office 、 automated testing 、 Reptiles , Both can be used. .
Now let's see how to use it . First , Upgrade your browser to the latest version , My current browser version 98, Then we open the recording function in the developer tool .
After the recording function is turned on , You can find it in the developer tools Recorder label , Click on + Number or new record Button to start a new recording operation .
This is the video of the official website , You can see :
https://player.bilibili.com/player.html?bvid=BV11L4y1v76C
When using the recording function , First click Start Record Button to start recording , Then all operations in the browser will be recorded , After recording , Click to end . stay Recorder All recorded scripts will be displayed under the label , Click on Replay You can replay the previous operation , This process is automatic , No need for manual participation .
There are two main application scenarios in the testing process :
1、 When conducting exploratory testing , You can quickly record your own test operations , It is convenient to add use cases later .
2、 Turn the manual test steps into automatic test code . Currently, direct export is supported puppeter Script , If not used puppeter, You can write your own code to convert tools into other tools .
Deal with some repetitive and messy daily work , Poke a surplus , For example, fishing and watching the news in my spare time . Visit each news website and record a script , Run this directly every time you need it recording . This is a video of fishing :https://player.bilibili.com/player.html?bvid=BV1aR4y157ie
边栏推荐
- Briefly, the process
- 7、 Experimental report of security implementation scheme in San and NAS environment
- Hardware course design: novel reading of multi-function player based on stm32
- MySQL error messages errors
- SAP ABAP Smartforms 踩过的坑
- SAP ABAP BP 批量维护邮箱地址
- 双向链表List类模板的实现
- Hardware course design: chat function of multi-function player based on stm32
- SAP DUMP CX_SY_CONVERSION_NO_NUMBER
- SAP BW 抽取层错误S:AA 821 (bukrs)
猜你喜欢
随机推荐
Implementation of dynamic array vector class template
SAP ABAP BP 批量维护邮箱地址
左值引用、右值引用和参数传递
Web review
128. Longest continuous sequence
unity2d水果忍者案例
SAP t-code transaction code set (continuously updated)
sql变更的审批,我设置了DBA审批,为啥DBA看不到单子呢
【优先队列(堆)】二叉堆类模板的实现
程序员日常技巧
Mycli's multiline mode
unity3d-常用组件
Associative word matching - Summary
SAP Tables 透明表、视图(持续更新)
unity3d-MonoBehaviour基类
Hardware course design: sensor device of multi-function player based on stm32
搜索二维矩阵 II
什么是eventloop(事件循环)?
Airplane games
Hardware course design: MP3 music playback of multi-function player based on stm32







