简体   繁体   English

关于使用带有C#的量角器的Angular 5自动化

[英]Regarding Angular 5 Automation using Protractor with C#

This is with regards to Angular 5 Automation with Protractor using c# 这与使用c#的带有Protractor的Angular 5 Automation有关

Currently my application is developed based on Angular5 with Primeng UI components and kendo grid. 目前,我的应用程序是基于带有Primeng UI组件和kendo网格的Angular5开发的。 Please find the following queries: 请找到以下查询:

a) Can protractor be used to Automate angular 5 application ? a)量角器可用于自动化Angle 5应用程序吗?

b) When I try to inspect, there are no ng-model, ng-reflect, ng-binding, ng-repeat etc.. available ? b)当我尝试检查时,没有可用的ng-model,ng-reflect,ng-binding,ng-repeat等。 Should I discuss with development team to add these locators for Angular 5 or any other locators are available ? 我是否应该与开发团队讨论为Angular 5添加这些定位器,或者有其他可用的定位器?

c) Can I use the nuget package protractor in visual studio and start writing code in c#.Does that protractor nuget package support angular 5 Automation ? c)我可以在Visual Studio中使用nuget包量角器并开始在c#中编写代码吗?该量角器nuget包是否支持angular 5 Automation? In our company I am not supposed to use JavaScript or typescript. 在我们公司,我不应该使用JavaScript或打字稿。 How feasible it is to write in c# using the protractor package ? 使用量角器包用c#编写代码有多可行?

d) Do you have any guideline that a developer should follow in Angular 5 development to cater E2e testing using protractor.net. d)您是否有开发人员在Angular 5开发中应遵循的任何准则,以使用protractor.net进行E2e测试。 Like ex for a input box what angular attribute to be added ? 像ex一样为输入框添加什么角度属性? For a drop down ? 要下降吗? For a grid what angular attribute to be added ? 对于网格,要添加什么角度属性?

e) There are two types of build prod build and dev build. e)有两种类型的构建产品构建和开发构建。 Actually we are supposed to test in prod build but unable to find any angular components in prod build, as the webpack tool coverts all the angular components to javascript . 实际上,我们应该在产品构建中进行测试,但无法在产品构建中找到任何角度组件,因为webpack工具会将所有角度组件都转换为javascript。 In this case where there are no angular components in prod build. 在这种情况下,产品构建中不存在角度分量。 How to Automate ? 如何自动化?

Please help me with these queries and in case you have any solution for protractor.net please share. 请帮助我解决这些问题,如果您对protractor.net有任何解决方案,请分享。

a) Can protractor be used to Automate angular 5 application ? a)量角器可用于自动化Angle 5应用程序吗?

Yes it can be used to automate angular 5 appl's 是的,它可以用于自动化角度5 appl的

b) When I try to inspect, there are no ng-model, ng-reflect, ng-binding, ng-repeat etc.. available ? b)当我尝试检查时,没有可用的ng-model,ng-reflect,ng-binding,ng-repeat等。

Above ng's can be present in angular 1 version (angular js), you dont bother about that, But still you can use Id, Xpath, className, model, buttonText. 上面的ng可以出现在angular 1版本(angular js)中,您不必担心,但是仍然可以使用Id,Xpath,className,model,buttonText。

C) Can I use the nuget package protractor in visual studio and start writing code in c#.Does that protractor nuget package support angular 5 Automation ? C)我可以在Visual Studio中使用nuget包量角器并开始用c#编写代码。量角器nuget包是否支持angular 5 Automation? In our company I am not supposed to use JavaScript or typescript. 在我们公司,我不应该使用JavaScript或打字稿。 How feasible it is to write in c# using the protractor package ? 使用量角器包用c#编写代码有多可行?

Yes you can use protractor nuget package support angular 5 Automation, You need to install, 是的,您可以使用量角器nuget程序包支持angular 5 Automation,需要安装,

Install-Package Protractor -Version ----, Protractor C # is not widely used like Protractor-js and Protractor-ts Combo. 安装包装量角器-版本----,量角器C#像量角器js和量角器ts组合一样没有广泛使用。 But still it has good support with C#. 但是它仍然具有对C#的良好支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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