From: Arti Singh Date: 2009-11-10T00:06:11+09:00 Subject: TypeError: nil is not a symbol error when running tests TypeError: nil is not a symbol error when runing test. Has anyone seen this error before? I have added the method that gives me trouble below Running the Class : s_name="ItemName"+Time.Now() dc=CreateItem.new(s_name) with the definition class CreateItem< Test::Unit::TestCase attr_accessor :s_name s_name="SH Test" def setup login("Browser") end#setup def initialize(name) @s_name=name end #def initialize(dc) #~ #Test to create a Item def test_createdc(name) #@$browser.open("https://index.html") @s_name=name s xpath="//div[@class='view container]//label[contains(text(),'#{s_name}')]/.." assert($browser.element?(xpath)) array=getElement(xpath) #Assert that the element has been created, check for the name of the item getElementName(array,$s_name) getCreatedbyName(array,$username) end #createdc end #class createitem -- Posted via http://www.ruby-forum.com/.