简体   繁体   English

使用任务计划程序运行量角器e2e测试脚本– Windows 10

[英]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.

相关问题 如何使用 PROTRACTOR E2E 在应用程序的每个页面中重用和运行相同的测试用例? - How to reuse and run same test cases in every page of application using PROTRACTOR E2E? 为什么在使用带有 waitForAngularEnabled(true) 的量角器运行 e2e 测试时出现错误 - Why I get an error when I run an e2e test using protractor with waitForAngularEnabled(true) 使用量角器e2e测试来测量代码覆盖率Java - Measuring code coverage java using protractor e2e test 使用量角器在测试 E2E 中上传文件 - Upload file in test E2E with Protractor 使用 ng e2e 进行量角器调试 - Protractor debugging using ng e2e Angular2 + karma +量角器 - 运行特定的e2e测试用例 - Angular2 + karma + protractor - run specific e2e test case 在 Azure DevOps 管道中运行时,Angular/Protractor E2E 测试失败。 本地通过 - Angular/ Protractor E2E Test fails when run in Azure DevOps Pipeline. Passes locally 试图为主题选择器编写量角器e2e测试 - Attempting to write protractor e2e test for theme selector 量角器E2E角度-可以测试吗? - Protractor E2E Angular- Possible to test? E2E如何在没有角度的情况下在其他网站上使用量角器测试? - How E2E test with protractor at other website without angular?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM