From: aidy Date: 2008-03-04T03:44:57+09:00 Subject: Re: YAML Thanks for the help. Not much documention on YAML. Just feel it is right for testing. Doing this and just one iteration running ( def SmokeTest.create_from_yaml_file(filename) require 'yaml' File.open(filename) do |yf| YAML.each_document(yf) do |data| obj = new(data['test'], data['url']) obj.register(data['first_name'], data['surname'], data['email'], data['password'], data['registration']) obj.login_to_site(data['email'], data['password']) obj.search_for_film(data['search_term'], data['expected_search_result']) obj end end end SmokeTest.create_from_yaml_file('C:\tiscali.yaml') (one file) test: tiscali url: http://tiscali3-test.vizumi.com/ first_name: aidy surname: smith email: 'testautomated6@googlemail.com' password: password registration: KJHDF123 --- test: vizumi url: vizumi3-test.vizumi.com first_name: aidy surname: smith222 email: 'testautomated6@googlemail.com' password: password registration: KJHDF123