integration_spec/resttestrail.rb in resttestrail-0.0.5 vs integration_spec/resttestrail.rb in resttestrail-0.1.0
- old
+ new
@@ -18,9 +18,17 @@
puts "host = #{Resttestrail.config.host}, port = #{Resttestrail.config.port}"
begin
client = Resttestrail::Client.instance
+
+ new_test_case_id = client.add_case(72621, "a new test case - delete me",
+ Resttestrail::Requests::Case_Type::FUNCTIONALITY,
+ Resttestrail::Requests::Case_Priority::MEDIUM,
+ estimate="1m 14s", milestone_id=nil, refs="REF1 REF2")
+ puts client.get_case(new_test_case_id)
+ client.delete_case(new_test_case_id)
+
run_id = client.add_run("an amazing run #{Time.new.strftime("%H_%M_%S_%N")}", suite_id)
puts "run id = #{run_id}"
run_test_case_id = client.add_result_for_case(run_id, test_case_id, Resttestrail::Requests::TEST_STATUS_PASSED, 24, nil)
puts "new test_case_id = #{run_test_case_id}"