简体   繁体   中英

Run Protractor e2e Test script Using Task Scheduler – Windows 10

我已经为我们的应用程序进行了Protractor E2E测试,现在想使用Windows“任务计划程序”在Windows机器/服务器上运行它,是否有人知道如何配置“任务计划程序”?

First thing is that you have to follow step in the given link for configuring task scheduler

Second part is that you have to create batch file that would run as a part of task scheduler. Following is the commands you can save in notepad and save it as *.bat extension. These command runs the sample spec files of protractor.

c:\
cd %appdata%\npm\node_modules\protractor\example
start protractor conf.js 

Note: You will have to ensure that protractor is installed globally before running batch file in task scheduler. You can also create batch file referring to your test automation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM