我可以重用/调用硒的Java框架现有的API到量角器框架? [英] Can I reuse/call existing API in Selenium-Java Framework into the Protractor Framework?

查看:147
本文介绍了我可以重用/调用硒的Java框架现有的API到量角器框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请容忍我,如果这是一个愚蠢的问题。但想到得到一个想法。

Please bear with me if this is a silly question. But thought of getting an idea.

我们有一个非常复杂的硒的webdriver-Java框架。但是,现在我们的应用程序的某些部分正在于AngularJS实施。我们想用量角器用于测试自动化。但是,我们必须在现有的框架,我们想重用某些API。是否有可能这样做,还是我们需要重新写在量角器所有现有的API?

We have a very sophisticated Selenium Webdriver-Java framework. But now some parts of our application is being implemented in AngularJS. We would like to use protractor for test automation. But we have some API in the existing framework which we would like to reuse. Is there a possibility to do so or do we need to re-write all the existing API in protractor?

感谢

推荐答案

也许不是你正在寻找的答案。但是,这可以给你一些希望。

Not probably the answer you are looking for. But, this can give you some hope.

不幸的是没有量角器渣口在这一刻。我使用硒C#和使用一些最近我的项目启动。而且,幸运的是,有一个量角器网通过一些伟大的人来完成的项目来完成同样的事情你与挣扎。我必须说,如果你的项目足够大,利用一些时间写了的Java 端口量角器,你可以轻松地跟踪这一项目。这并不是说广泛。我个人使用它,并开始在我的博客

Unfortunately there is no protractor java port at this moment. I use Selenium C# and my project started using some Angular recently. And, fortunately, there is a Protractor-net project done by some great people to accomplish same thing you are struggling with. I must say, if your project is big enough to leverage some time to write a java port for protractor you can follow this project easily. It's not that extensive. I am personally using it and started writing about this on my blog

这篇关于我可以重用/调用硒的Java框架现有的API到量角器框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆