# Testng with ruby

**URL:** <https://www.ruby-forum.com/t/testng-with-ruby/157220>\
**Category:** Ruby\
**Created:** [January 8, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/testng-with-ruby/157220 "2009-01-08T16:31:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shekarls](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@shekarls](https://www.ruby-forum.com/u/shekarls)\
**Post date:** [January 8, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/testng-with-ruby/157220/1 "2009-01-08T16:31:15Z")

</div>

All,  
I am planning to Setup Automation framework consisting of  
following :

1. Selenium RC with ruby
2. Testng
3. Ant  
Question 1: I would want to know what is the equivalent of :

import org.testng.annotations.\*;  
import org.testng.annotations.BeforeMethod ;  
import org.testng.annotations.Test ;  
import static org.testng.Assert.assertEquals ;

– this is in Java, can i get the equivalent require ‘’ of this in  
ruby.

Question 2: Can anyone share any knowledge/code which is on similar  
lines

Hope to Hear from you soon guys!

Cheers

---

<div class="post-metadata">

**Author:** ![shekarls](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@shekarls](https://www.ruby-forum.com/u/shekarls)\
**Post date:** [January 8, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/testng-with-ruby/157220/2 "2009-01-08T17:35:04Z")

</div>

On Thu, Jan 8, 2009 at 3:30 PM, Shekar Ls [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> All,  
> I am planning to Setup Automation framework consisting of  
> following :
> 
> 1. Selenium RC with ruby
> 2. Testng
> 3. Ant

I don’t know the specific answer to your questions, but if you are  
integrating  
Ruby and Java for test purposes, you really need to look into JtestR.
