# Tool for testing application in RoR

**URL:** <https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160>\
**Category:** Rails\
**Created:** [November 14, 2007, 10:49am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160 "2007-11-14T10:49:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 10:49am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/1 "2007-11-14T10:49:34Z")

</div>

Hi,

I am very new to RoR.  
I want to know which automation tool we can use for testing application  
in RoR.

Please help me.

Thanks in advance,

Regards,  
Vedika

---

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 10:55am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/2 "2007-11-14T10:55:02Z")

</div>

beneath the testsuite that comes with rails you can use rspec instead,  
which adds some funcs and has a better syntax

[http://rspec.rubyforge.org/index.html](http://rspec.rubyforge.org/index.html)

---

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 11:06am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/3 "2007-11-14T11:06:31Z")

</div>

Is that a automation tool like QTP , Rational functional tester?

---

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 11:10am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/4 "2007-11-14T11:10:06Z")

</div>

Hi Vedika,

To do the functional tests / user acceptance tests, you can use selenium  
(  
[http://www.openqa.org/selenium/](http://www.openqa.org/selenium/))

## Regards,

Rafael Mueller

> **[Quero ser Ágil](https://queroseragil.wordpress.com)**
>
> Idéias e experiências de um desenvolvedor em busca da Agilidade

---

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 11:13am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/5 "2007-11-14T11:13:14Z")

</div>

Vedika Ss wrote:

> Is that a automation tool like QTP , Rational functional tester?

i never worked with QTP, which seems to be focused on desktop  
applications (?)  
RoR comes with it’s own integrated test suite in which you can run tests  
from the commandline, functional and unit tests

rspec exchanges this tests with a different syntax for writing tests and  
some more functionality.

---

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 11:16am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/6 "2007-11-14T11:16:35Z")

</div>

Thanks for the valuable information.

Then how the GUI testing is done for the applicaiton developed in RoR?  
Is there any GUI testing tool?

---

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 11:22am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/7 "2007-11-14T11:22:14Z")

</div>

Thanks a lot Rafael!!!

---

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 11:31am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/8 "2007-11-14T11:31:34Z")

</div>

Thanks Thorsten!!!

---

<div class="post-metadata">

**Author:** ![vedika](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vedika](https://www.ruby-forum.com/u/vedika)\
**Post date:** [November 14, 2007, 11:23am UTC](https://www.ruby-forum.com/t/tool-for-testing-application-in-ror/120160/9 "2007-11-14T11:23:53Z")

</div>

Vedika Ss wrote:

> Thanks for the valuable information.
> 
> Then how the GUI testing is done for the applicaiton developed in RoR?  
> Is there any GUI testing tool?

if we accept GUI for HTML 😉  
then:

in your tests you make a get/post/put… and evaluate the returned html  
with  
assert\_response and check for specific content with assert\_select

this will give you an overview:  
[http://manuals.rubyonrails.com/read/book/5](http://manuals.rubyonrails.com/read/book/5)
