问题
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