what are the pros and cons about using Robot Framework or directly using Selenium?

12,405 views
Skip to first unread message

neeraj shriwas

unread,
Mar 21, 2012, 6:50:31 AM3/21/12
to robotframe...@googlegroups.com
 I wanted to know What is the advantages of Ride as compare  to Selenium RC? Is there any limitation of Ride which can be used by Selenium only? 


Thnaks
Neeraj

Bryan Oakley

unread,
Mar 21, 2012, 7:16:14 AM3/21/12
to robotframe...@googlegroups.com
On Wed, Mar 21, 2012 at 5:50 AM, neeraj shriwas <shriwa...@gmail.com> wrote:
 I wanted to know What is the advantages of Ride as compare  to Selenium RC? Is there any limitation of Ride which can be used by Selenium only? 



You seem to be getting your terminology mixed up. RIDE, robot and selenium are all different things:

* RIDE is an IDE for editing robot files, but it's not the only way to edit robot files. You don't need RIDE to use robot.
* Robot is a testing framework that gives you a human friendly syntax, tagging, reporting, a suite of tools, etc.
* Selenium is a tool for automating a browser. 

What you get by using robot rather than directly coding in selenese or one of its language bindings is the ability to write your tests at a higher level, with abstractions called keywords. For example, you could write a ATDD or BDD style test like:

    Given I am logged in to my application
    When I go to the "My Files" section
    and when I click on "refresh"
    I should see a list of all files associated with my account

You can't do that if you only use selenium and its libraries.

Robot framework also gives very nice test reports, and the ability to organize your tests with a very simple but robust tagging system. Robot has a test runner that can output in XML, but also in any format you want using its listener interface (for example, you can stream test results to a remote monitoring tool, save results as JSON, etc)

You can extend the robot framework with keywords written in python, and also in either a .NET language (if using ironpython) or java (if using jython). This lets you not only manipulate the browser, but you can then also call web APIs, or dig into a database or the file system to verify that what is on disk is what is on the web page.


neeraj shriwas

unread,
Mar 21, 2012, 7:52:09 AM3/21/12
to robotframe...@googlegroups.com
Sounds Good. You meant Robot framework is the nice and well user friendly. We don't need to put a lot of effort and enhance our coding. Yup its nice. Any ways Thanks a lot. Additionally How can or what is the another way to editing Robot Files. I am using it by Python. I am really very new but have the ability to learn.My best requirement is to use any automation tool for regression testing.The application is webbased and its very vast.

greg

unread,
Mar 21, 2012, 9:56:30 AM3/21/12
to robotframe...@googlegroups.com
We use Notepad++ with syntax highlighting for comments, keywords, library keywords.

Greg

Bryan Oakley

unread,
Mar 21, 2012, 10:06:45 AM3/21/12
to robotframe...@googlegroups.com
On Wed, Mar 21, 2012 at 6:52 AM, neeraj shriwas <shriwa...@gmail.com> wrote:
Sounds Good. You meant Robot framework is the nice and well user friendly. We don't need to put a lot of effort and enhance our coding. Yup its nice. Any ways Thanks a lot. Additionally How can or what is the another way to editing Robot Files.

You can use any plain text editor that you want. At my previous job many people used eclipse. In my current job most people use Visual Studio. I use emacs. Others use vim or notepad++

One of the strengths of robot is that it uses a plain text format for its tests, so you aren't tied to a specific tool.
 

William Zhang

unread,
Mar 21, 2012, 10:13:45 AM3/21/12
to koh...@gmail.com, robotframe...@googlegroups.com
If you use vim ,have a try this https://github.com/jollychang/robotframework-vim

Sent from my iPad
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/robotframework-users/-/7KOmyksG_VAJ.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.

Prashant

unread,
Mar 28, 2012, 5:43:22 AM3/28/12
to robotframework-users
Hi Greg,

> We use Notepad++ with syntax highlighting for comments, keywords, library
> keywords.

Can you please share your user defined language template that you use
in Notepad++ for Robot Framework?

Thanks,
Prashant

David

unread,
Mar 28, 2012, 7:58:07 PM3/28/12
to robotframework-users
> Hi Greg,
>
> > We use Notepad++ with syntax highlighting for comments, keywords, library
> > keywords.
>
> Can  you please share your user defined language template that you use
> in Notepad++ for Robot Framework?
>
> Thanks,
> Prashant

If yes, would be good to host somewhere like a Google project or on
GitHub.

On a side note, anyone make a similar template for JEdit?

greg

unread,
Mar 29, 2012, 9:37:07 AM3/29/12
to robotframe...@googlegroups.com
Here is the Notepad++ defined language file.

Brief explanation.
Keyword List tab.
Green color - Most keywords
Blue color - autoit library.
Purple color - any word with prefix "k".  We make all of our keywords start with lower k so we can tell them apart.  ie kSetup, kLogin, kJumpUpAndDown
Orange color - keywords we created.  I just noticed I am missing my sikulit ones here.

Comment & Number.
Blue color - all the variations of comments.

Operators
Gold color - this is for variables

Also go have it setup to show tabs and spaces (view->show symbole->show white space and tab).  This is because we have our scripts tab delimited to make it easier to read.

The only initial pain was gathering all of the keywords from each library, pasting in excel and do some cleanup, then paste back into Notepad++.  Once you have this you can mix and match how you want library syntax formatted based on the 4 available sections.

This is a general idea of how we did it.  Add a new post if you have more questions.

Greg
RobotFramework.xml

Prashant

unread,
Mar 30, 2012, 12:03:38 AM3/30/12
to robotframework-users
Thanks a lot Greg for sharing this.
>  RobotFramework.xml
> 22KViewDownload

Rafal

unread,
Mar 30, 2012, 4:04:27 AM3/30/12
to robotframework-users
Hi,

How to install Robotframework.xml to notepad++ ?

Thx, in advance,

Rafal
>  RobotFramework.xml
> 22KZobaczPobierz

Prashant

unread,
Mar 30, 2012, 5:38:05 AM3/30/12
to robotframework-users
Copy it in "C:\Documents and Settings\<user_name>\Application Data
\Notepad++" folder and then rename it to "userDefineLang.xml"
Restart Notepad++.

greg

unread,
Mar 30, 2012, 9:26:32 AM3/30/12
to robotframe...@googlegroups.com
In Notepad++

View->View User-Defined Dialog...

Click Import and navigate the the xml file.

Greg
Reply all
Reply to author
Forward
0 new messages