Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Robot Framework with Java using Eclipse as IDE

I have installed Robot Framework-EclipseIDE plugin by following the instruction on the following URL:

https://github.com/NitorCreations/RobotFramework-EclipseIDE/wiki/Installation

Installation is done successfully. Now I want to write some Test Cases using Java in Robot Framework. I am very novice in Robot Framework and I don't know how to start writing TCs in Robot Framework using Java in Eclipse.

Please help me to start.

like image 529
Koly Avatar asked Oct 05 '22 10:10

Koly


1 Answers

You don't write Robot Framework test cases in Java unless you plan to extend RF with your own keyword libraries. Robot Framework tests are usually written in text, html, TSV or reStructured format. In text format the separator is important, usually two spaces or the pipe character.

The Robot Framework User Guide is an excellent source of wisdom, but this guide is good one for a quick introduction.

Robot Framework also has a Quick Start Guide which you can download.

I suggest that you start by simply starting a browser and using it to navigate to eg. search engine home page to perform a search. See Selenium Library docs for more info.

Below is an example test case.

Search with DuckDuckGo
  Open Browser  https://duckduckgo.com/
  Input Text  search_form_input_homepage  ATDD
  Submit Form  search_form_homepage
  Page Should Contain  Using Robot Framework for ATDD
like image 106
puudeli Avatar answered Oct 13 '22 10:10

puudeli