[Automation Platform Series]-Initial use of macaca-front-end automation testing

Source: Internet
Author: User

1, first look at the official address, see if this is not the test tool you want

Https://macacajs.github.io/macaca/environment-setup.html

2. Remove sudo---sudo chown-r $USER/usr/local

3. Global Installation Automation Test Tool command----NPM i macaca-cli-g

4. Modify the local host---sudo vim/etc/hosts

Add a record 127.0.0.1 localhost

5, go to GitHub download demo project to local

Https://github.com/xudafeng/macaca-test-sample

In the command execution sequence

https://github.com/xudafeng/macaca-test-sample


因为我用的是chrome浏览器,所以要修改文件 macaca-test/macaca-desktop-sample.test.js

' Use strict ';

var wd = require (' webdriver-client ') ({
PlatformName: ' Desktop ',
Browsername: ' Chrome '----------this change to Chrome
});

然后执行下面代码
$ make test-pc

Because I currently only use the PC's automated testing, iOS and Android are not introduced here.

[Automation Platform Series]-Initial use of macaca-front-end automation testing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.