Open kirantpatil opened 9 years ago
The code that you included does not have anything to do with TestCaseDB. That is simply watir code. IS there a TestCaseDB specific question?
I would like to add web v2 api to call it from testsuite.rb --> login.rb. The code in testsuite.rb contains web v1 api and xml stuff to parse URL and so on.
@joffems.
There are still lot of issue of running a below script which I would like to make it as part of automated Funcational testsuite using webapi v2.
$ cat valid_login.rb require 'watir-webdriver' browser = Watir::Browser.new :firefox browser.goto "http://192.168.1.244:8081/" browser.text_field(:id => 'id_username').set("admin") browser.text_field(:id => 'id_password').set("admin") browser.button(:type => 'submit').click browser.link(:text => "admin").click browser.link(:text => "Sign out").click browser.close
I tried to change xml stuff and so on but could not succeed due to my limited knowledge of web technologies.
Please provide me a script as you mentioned in http://news.testcasedb.com/wp-content/uploads/2012/05/automation_example1.pdf to execute and upload result to tcdb using webapi v2 to automate above Testcase.
Thanks.