Can I reuse/call existing API in Selenium-Java Framework into the Protractor Framework?

岁酱吖の 提交于 2019-12-21 23:25:24

问题


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

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?

Thanks


回答1:


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

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




回答2:


Some one is trying to develop jProtractor - An angular/protractor implementation for Java Selenium API. https://github.com/caarlos0/jProtractor

This is still under development(not in a position to use yet), but this could be the right tool for people who are in similar situation as me.



来源:https://stackoverflow.com/questions/29132097/can-i-reuse-call-existing-api-in-selenium-java-framework-into-the-protractor-fra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!