简体   繁体   中英

What are advantages/disadvantages of using Selenium for Java vs .NET applications?

I'm a test lead in a new project where we're starting with re-writing from scratch some web application which is about 12 years old. We have quite a free hand with defining processes and technologies. My goal is to have automated functional (for regression) tests with Selenium 2 (in python) connected with some Continuous Integration server.

Currently we're considering 2 technologies Java vs .NET (C#)

And my rather general question is: are there any advantages/disadvantages of using selenium 2 for Java vs .NET applications?

From my (tester) perspective I don't think that this would have a significant impact on my automation tests because we'll be creating them from user perspective but maybe I'm wrong and that's why I'm asking it in this place.

Thanks, Michal

应用程序使用哪种语言都无关紧要。Selenium通过浏览器进行测试,并且无法判断Java Web应用程序与C#中的Web应用程序之间的区别。

I am currently testing Java-based web application and here are moreover general tips on how the developement should build them:

  • Every Web Element should have unique and unchangeable ID. This will assure you, that you can run your selenium scripts over and over again.
  • The application should have form based authentification
  • For better writing tests, the app should show "working" picture/message whenewer its doing something

Its more like about being good web developer in general than used technology. Selenium is "just clicking" the final product - HTML page generated by the programming language.

BTW, here on StackOverflow, most people use WebDriver and JUnit (Java). Think about it before writing the scripts. Because if you have any python - related issue, I cannot help :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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