Selenium vs QTP

92 views
Skip to first unread message

Sergey Dumik

unread,
Dec 8, 2010, 6:48:16 AM12/8/10
to Agile Testing
Прошу уважаемых участников группы объяснить в 2х словах преимущества
того и другого инструмента, и недостатки, в сравнении друг с другом.
Имеется крупное multi-tier приложение. Бекенд написан на Java.
Хотелось бы использовать этот язык и для автотестов. UI пока что
заточен под IE. Так вот, стоит вопрос о внедрении автоматизации. Есть
кое-какие наработки с использованием QTP.
Итак, если забить на QTP и начать использовать Selenium, в чём будут
плюсы и минусы?
Спасибо.

Mikalai Alimenkou

unread,
Dec 9, 2010, 5:23:34 AM12/9/10
to Agile Testing
Первый плюс - бесплатность Selenium. Но если у вас уже куплен QTP, то
этот плюс сильно роли не играет. Второй плюс - Selenium работает
напрямую с браузером. Но QTP в данном случае работает примерно так же.
Третий плюс - поддержка многоплатформенности. Но я так понимаю, что
делается приложение под IE, а значит под винду. Соответственно этот
плюс тоже мало играет роли. Следующий плюс - возможность написания
тестов на языке программирования с использованием Selenium драйвера.
Это очень существенный плюс, потому что при правильном применении вы
сможете разработать доменный язык для тестирования своего приложения и
отделить логику тестов от структуры страниц. Таким образом тесты
станут надежными и при изменении приложения не придется переделывать
все тесты с нуля. Еще один плюс - вы сможете ускорить запуск тестов за
счет запуска их в Selenium Grid. Из минусов я бы отметил необходимость
программировать на выбранном языке программирования. Но за плюсы
приходится платить. :)

Stanislav Makarenko

unread,
Dec 9, 2010, 6:26:59 AM12/9/10
to acceptanc...@googlegroups.com
Ниже приведу сравнение, найденное тут.

От себя добавлю: имел опыт работы с QTP и Selenium. Немного разные продукты, но если начинать с нуля - Grid + интеграция в билд процесс делают Selenium хорошим выбором. А поддержка различных языков - ещё и удобным. Необходимость программировать на языке (VB в QTP или различных в Selenium) присутствует в обоих продуктах.
Итого: если не купил QTP - не покупай ;)

SNOFeaturesQTPSelenium Explanation
1Actual end user simulation, Is the test conductedusing this tool equivalent to an end user action?YESNOSelenium performs actions in the background on thebrowser. It modifies the DOM structure of the HTML page in order toperform actions on the page. To be more precise it executes javascript on UI objects within the webpage to perform actions like click, type, select etc. This is the reason why you can execute testswith the browser minimized. QTP claims to perform end user simulation, in other words executing QTP scripts is equivalent to a person performing those steps manually on the application.
2Support for most UI ComponentsYESYESCertain events, methods and Object properties arenot supported by selenium. But broadly most UI components aresupported. QTP requires extra addins (plugins, not free) to work with dotNet components.
3UI-Object management & storageYESNOQTP comes built-in with object repository. Objectrepository management is quite easy in QTP. Selenium has no such built infeature but objects can be managed using UI-Element user extension. Other custom solutions like properties files can also be used in selenium. But for all such solutions themap file in selenium has to be hand-coded i.e unlike QTP the objects won't be recorded/added automatically .
4Support for Dialog BoxesYESNOQTP supports all kinds of IEdialog boxes. There is partial support for dialog boxes in Selenium.Some actions like retrieving the tittle of he dialog box can't be performed in selenium
5Support for file upload scenarioYESNOThis is the scenario where you upload a file located in your local machine onto the application using 'browse file' dialog or something similar. Selenium does not support this scenario due to JavaScript restriction. QTP has no problem whatsoever simulating this scenario.
6Support for web browsersYESYESQTP supports IE & Firefox. Selenium supportsIE, Firefox, Safari and Opera and a few more browsers. But either tools are far far away from full cross-browser support. Don't expect scripts created using browser to run flawlessly in another browser.
7Object Recognition Parameters, Recognition on thebasis of WYSWYG (what you see is what you get)YESNOSelenium recognizes objects on the basis of theDOM structure of the HTML Page. The UI objects in selenium have vaguedescriptions and don't comply with WYSWYG policy. QTP recognises and names objects based on properties which are more visible and obvious and are hence the objects have user friendly names.
8Object Oriented Language support &Scalability (as in Integration with External tools utilities and libraries).NOYESSelenium Supports JAVA, dot net and many otherindustry standard programming languages. QTP supports vb script only.
9Integration with test management toolWith HP Quality Center and TestDirectorNoQTP integrates seamlessly with QC and TD. Test management and mapping the manual testing process with automation becomes a lot easier with this integration. I have not yet heard of any test management tool that can integrate seamlessly with Selenium. keep an eye out for Bromide though.
10Types of application supportedWeb,Windows(DotNet,VB, Powerbuilder, TCL/TK), Terminal Emulation, Command promptWeb OnlyQTP wins this one hands down. This is one of the main reason why selenium can't even be considered in many cases. Imagine real-time applications like trading terminals, risk management applications built in TCL/TK and powerbuilder. QTP supports most of these interfaces. Selenium on the other hand can work only on applications that open up inside a browser. But aren't most applications moving to the browser based platform? :)
11Support for operating system/platformsNOYESSelenium Supports JAVA and hence can be used in Windows PC or MAC or UNIX. Using selenium you can test your web application in all the above platforms. QTP supports Windows only.
12Ease of creation of ScriptsExcellentGoodSelenium IDE Recorder is not as powerful as QTPbut is good for a free tool, many actions are not recorded by the IDE andhave to be manually entered.
13Technical SupportYESNOQTP offers technical support by phone and mail, HP also have a web-forum.QTP user community is vast and questions posted on online forums getanswered quickly. Selenium being an open source tool has no official techsupport, the user community is small, less-active and questions on forumsseldom get answered. But the community is growing day by day as the tool gains acceptance.
14CostCostly, $5,000 per seat license when i last checkedFreeMany people want to switch to selenium because it's free. But cost isn't really a factor when your client's a investment bank :)
15Test Development EnvironmentReasonable but not the bestBest in the worldWhen you are working on selenium you have the option of using wide range of IDEs like Eclipse, Netbeans, Visual Studio etc depending on your choice of development language. If you are a developer then you must have developed a taste for rich IDEs and switching to a environment given by a test tool may be hard for you. QTP tests can only be developed in QTP.
16Integration with development processNo real integration possibleYesTests developed using selenium can be easily part of the development project. Using tools like cruise control Continuous Integration is easier with Selenium. But don't get too caught up with this feature, it's really not that important to be integrated with the development process but it's nice to have.
17Future in terms of usability and acceptanceWill have it's presence in non-web based application testingWill be the market leader in web application testing The future bodes well for selenium because it's free, supports all programming languages/platforms and is immensely scalable and expandable due to it being free and open source. Many pundits have predicted that it will completely conquer the web testing market in the next 5 years. It being free makes a huge difference especially when times are hard like what we have now. QTP on the other hand is the current market leader and I think that it will have it's presence for long due to it's user friendliness and support for interfaces other than web.

POSTED BY MAHESH NARAYANAN AT 5:29 AM  


2010/12/9 Mikalai Alimenkou <lumii.su...@gmail.com>
--
Вы получили это сообщение, поскольку подписаны на группу Agile Testing.

Чтобы добавлять сообщения в эту группу, отправьте письмо по адресу acceptanc...@googlegroups.com.
Чтобы отменить подписку на эту группу, отправьте сообщение по адресу acceptance-test...@googlegroups.com.
О дополнительных функциях можно узнать в группе по адресу http://groups.google.com/group/acceptance-testing?hl=ru.




--
With best regards,
Stanislav Makarenko

My profile at LinkedIn

Sergey Dumik

unread,
Dec 13, 2010, 8:57:08 AM12/13/10
to acceptanc...@googlegroups.com
всем спасибо!

2010/12/9 Stanislav Makarenko <g.o....@gmail.com>
Reply all
Reply to author
Forward
0 new messages