[英]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.
以下是您可以保存在记事本中并将其另存为* .bat扩展名的命令。 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.
您也可以参考测试自动化来创建批处理文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.