开发者

Selenium or Eggplant [closed]

开发者 https://www.devze.com 2023-03-23 09:26 出处:网络
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th
Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 9 years ago.

Improve this question

we are just trying to evaluate which one is best - Selenium or Eggplant

Selenium is of course free of cost. The following are some problems we faced: 1. click actually requires focus on the page. so when a test case is running we just have to see the selenium running. Any click by the user, for example if i want the test case to run in background, the开发者_JAVA技巧n i can't do that. I dont know how fireEvent() method will help in this case.

  1. Our application has many form and any click or value change or focus on any element reloads(through ajax) some component on the webpage. So the page is fully ajax driven. So we were getting many Stalereference exceptions when using selenium. We handled this with using our own wrappers on top of webelement which handles such exceptions.

Will eggplant be a better alternative?


The Automation tools have to have the browser open to truly do the automation tests. It's an actual representation of what the end-user would do (clicks, changing URL, clicking browser [BACK]/[FORWARD] buttons, key-presses, etc..), so it must launch an instance of the browser. Selenium IDE can only run in Mozilla Firefox, but if you set up Selenium Remote Control server, and choose a client (NUnit using .NET, JUnit using Java, etc..) and launch your browser from Visual Studio (using NUnit) or from Eclipse (using JUnit), then you can test your script in multiple browsers. They also have Web Driver which is a newer way architecture than Selenium RC (Remote Control).

I've never used Eggplant, so I can't criticize on it.

As for the things you had issues with during your proof of concept, I can help you with those. Selenium is actually JavaScript running on top of any JavaScript running on your page (ie: AJAX in your case), so it will work fine for those situations. Can you describe the behavior of the StaleReference Exceptions?


I am using Selenium and Webdriver. In ChromeDriver, the browser can actually run in background (verified by myself :) )

So I would suggest Selenium - and moreover, you can find support here ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号