Robot keyword management integration for designing Selenium object templates

I have been shopping for user interface automation tools for a long time. And the reason that is so careful is not to shoot in the leg. The link below best describes my fear http://gojko.net/2010/04/13/how-to-implement-ui-testing-without-rouble-yourself-in-the-foot-2/

Now I’m pretty sure that I can achieve the goal using Selenium2.0 with Object Object Design (which takes care of part of the technical activity) in combination with the Robot Framework keyword function (which takes care of the workflow and part of the rules). So, what will happen, I will match the user-defined keywords using the appropriate page methods, and then use the keywords to develop test plans within the framework of the robot.

However, I did not find a solution on how to map the user-defined keyword to the methods from the corresponding Object Object Designed method in Java.

Guidance on how to be rated.

thanks

+4
source share
5 answers

Our organization has 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/

+4
source

Here is some information that may be useful: http://blog.codecentric.de/en/2010/07/how-to-structure-a-scalable-and-maintainable-acceptance-test-suite/

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

+1
source

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

This tool also behaves as a testing management tool and allows you to maintain requirements, create test system flows, automate test files, execute them, and also helps to report results.

Further information on this tool can be found at http://www.tricentis.com/en/home

Try this and let us know if it helped.

+1
source

I recently wrote a simple example showing how to convert a Java page object to the format of a clean keyword / Robot Framework resource file (everything is done at the user level, without code). I did this because I found the existing examples too complex and less intuitive for those who came from working with page objects in real code or who follow examples of page objects that were specified in the code. This reflects code implementation in more detail.

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

it does not cover the inheritance of page objects and individual test-related classes that may inherit test cases. Perhaps for a future example this is more complicated.

I will say, however, that basic inheritance could be mimicked by using resource files that reference each other. You simply cannot get the level of detail that you get in the code, that's all (public, private, secure, etc.).

0
source

I don't think Robot framework is the best choice for user interface testing. It is better suited for functional integration testing when a complex system or system component is being tested. For example, I use it to verify the mechanism of business rules. I send various events to the engine and check if the system has been converted to the appropriate state.

Have you tested other user interface testing tools like Watir , Tosca or Sahi ? I find the latter the most interesting for how it refers to the components on the page (relative to other elements). And it does not require special tags for user interface components.

-1
source

Source: https://habr.com/ru/post/1345206/


All Articles