Package: robotframework-zoomba
RobotFramework-ZoombaWhat is RobotFramework-Zoomba?Robotframework-Zoomba is a collection of libraries spanning GUI, REST API, and SOAP API automation usingRobot Framework.
These libraries are extensions of existing librariesSeleniumLibrary,Requests,
andSudsLibrary.Looking for our extension ofAppiumLibrary(DesktopLibrary and MobileLibrary)? Check out our new repoRobotFramework-ApplicationLibrary!Zoomba adds a significant amount of data validation support for REST and SOAP API and extends functionality for typical Web GUI automation.As a team beginning the journey of automation with Robot Framework - we found that there was some time spent ramping up our libraries and Robotframework-Zoomba aims to make that process easier for new projects.See theKeyword Documentationfor theAPI,SOAP,
orGUIlibrary for more specific information about the functionality.Example tests can be found in thesamples directory.Some Features of the LibraryGUI Library:When working with web pages of varying load times you probably find yourself running a lot of calls like so:Wait Until Page Contains ElementlocatorClick ElementlocatorFor ease of use we have combined a lot of these into simple one line keywords:Wait For And Click ElementlocatorWait For And Click TexttextWait For And Select From Listlist_locatortarget_locatorAnother keyword that is particularly useful is for when you are waiting for javascript to complete on a page before proceeding:Wait For And Click Elementlocator that leads to a new page with javascriptWait Until Javascript Is CompleteWait For And Click ElementlocatorAPI Library:This library wraps therequests libraryso we have created a set of keywords to easily allow users to make requests in a single keyword:Call Get Request${headers_dictionary}endpointquery_stringCall Post Request${headers_dictionary}endpointquery_string${data_payload}After receiving your data we made it incredibly easy to validate it.Validate Response Contains Expected Responsetakes your received request and compares it to your expected data. If there are any errors found it will report line by line what they are.Validate Response Contains Expected Response${json_actual_response}${json_expected_response}If there is any mismatched data it will look something like this:Key(s) Did Not Match:
------------------
Key: pear
Expected: fish
Actual: bird
------------------
Full List Breakdown:
Expected: [{'apple': 'cat', 'banana': 'dog', 'pear': 'fish'}, {'apple': 'cat', 'banana': 'mice', 'pear': 'bird'}, {'apple': 'dog', 'banana': 'mice', 'pear': 'cat'}]
Actual: [{'apple': 'cat', 'banana': 'dog', 'pear': 'bird'}]

Please see differing value(s)If you wanted to ignore a key such as the 'update_date' you would simply set the 'ignored_keys' variable to that key or a list of keys:Validate Response Contains Expected Response${json_actual_response}${json_expected_response}ignored_keys=update_dateValidate Response Contains Expected Response${json_actual_response}${json_expected_response}ignored_keys=${list_of_keys}Getting StartedThe Zoomba library is easily installed using thesetup.pyfile in the home directory.
Simply run the following command to install Zoomba and it's dependencies:pipinstallrobotframework-zoombaIf you decide to pull the repo locally to make contributions or just want to play around with the code
you can install Zoomba by running the following from theroot directory:pipinstall.or if you intend to run unit tests:pipinstall.[testing]To access the keywords in the library simply add the following to your robot file settings (depending on what you need):***Settings***LibraryZoomba.APILibraryLibraryZoomba.GUILibraryLibraryZoomba.SOAPLibraryExamplesExample tests can be found in thesamples directory.Thetest directorymay also contain tests but be aware that these are used for testing releases and may not be as straight forward to use as the ones in thesamples directory.ContributingTo make contributions please refer to theCONTRIBUTINGguidelines.See the.githooksdirectory for scripts to help in development.SupportGeneral Robot Framework questions should be directed to thecommunity forum.For questions and issues specific to Zoomba please create anissuehere on Github.