开发者

Integration with Robot framework's keyword management for Selenium Object Pattern Design

I have been shopping for tools for UI automation quite a while. And, the reason being so cautious is to prevent from shooting myself in the foot. The link below best describes my fear http://gojko.net/2010/04/13/how-to-implement-ui-testing-without-shooting-yourself-in-the-foot-2/

I am now quite certain that I can going to meet the goal by leveraging Selenium2.0 with Page Object Design(that takes care of technical activity part) in conjunction with Robot Framework's keyword feature (that takes care of the work flow and rule parts). So, what happen would be I will map user defined keywords with the corresponding Page m开发者_如何学Cethods and then use to keywords to design test plans on robot framework

However, I have not found a solution on how to map a user defined keyword to the methods from the corresponding Page Object Designed method in Java.

A guidance on how would be appreciated.

Thanks


Our organization developed a framework to support this: https://github.com/ncbi/robotframework-pageobjects.

I wrote about the experience of implementing this here: http://www.kahunacohen.com/2014/12/03/new-testing-paradigm-robotframework-pageobjects/


There's some info here that might be helpful: http://blog.codecentric.de/en/2010/07/how-to-structure-a-scalable-and-maintainable-acceptance-test-suite/

If not, then a good place to ask would be the robotframework users group: http://groups.google.com/group/robotframework-users


Just adding to what Ruslan said,I have been working on an automation tool called TOSCA Test suite. Its brilliant for UI testing and works like magic. However, I would advice you to stay away from it if you hate automation tools that are not steeped in scripts (by scripts I mean coding). Tosca lets you capture screens from your application using a inbuilt mechanism called TOSCA Wizard which saves the application screen in a .xml file. This later can be imported inside your testing workspace and can be used to create scripts.

This tool behaves as a test management tool as well and lets you maintain requirement, created testcase flows, automate testcases, execute them and also helps you in reporting the results.

You can find more information about this tool at http://www.tricentis.com/en/home

Try this and let us know if it helped.


I recently wrote up a simple example showing a conversion of Java page object to Robot Framework pure user keyword/resource files format (all done at user level, no code). I did it as found the existing examples a bit too complex and less intuitive to those who come from working with page objects in actual code, or who follow page object examples that were given in code. This here more closer mirrors the code implementation

https://github.com/daluu/robotframework-simple-page-object-example

it does not cover inheritance of page objects and separate test related classes that test cases might inherit from. Perhaps that's for a future example that's more complicated.

I will say however that basic inheritance could be mimicked with resource files referencing one another. You just might not get the level of scoping granularity that you would get in code is all (public, private, protected, etc.)


I don't think that Robot framework is a best choice for UI testing. It suites better for functional integration testing when a complex system or component of the system is under test. For example I'm using it to test a business rules engine. I send different events to the engine and verify if the system was turned to an appropriate state.

Did you check any other UI testing tools like Watir, Tosca or Sahi? I find the last one the most interesting for the way how it addresses components on the page (relative to other elements). And it doesn't require any special tags for UI components.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜