|
@@ -554,6 +554,33 @@ $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4,
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
|
|
+$VAR1 = 'index.php?/api/v2/add_run/10';
|
|
|
|
|
+$VAR2 = '200';
|
|
|
|
|
+$VAR3 = 'OK';
|
|
|
|
|
+$VAR4 = bless( {
|
|
|
|
|
+ 'connection' => 'close',
|
|
|
|
|
+ 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
|
|
|
|
|
+ 'client-response-num' => 1,
|
|
|
|
|
+ 'date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
|
|
|
|
|
+ 'client-peer' => '192.168.122.217:80',
|
|
|
|
|
+ 'content-length' => '654',
|
|
|
|
|
+ '::std_case' => {
|
|
|
|
|
+ 'client-date' => 'Client-Date',
|
|
|
|
|
+ 'x-powered-by' => 'X-Powered-By',
|
|
|
|
|
+ 'client-response-num' => 'Client-Response-Num',
|
|
|
|
|
+ 'client-peer' => 'Client-Peer'
|
|
|
|
|
+ },
|
|
|
|
|
+ 'client-date' => 'Tue, 23 Dec 2014 20:02:09 GMT',
|
|
|
|
|
+ 'content-type' => 'application/json; charset=utf-8',
|
|
|
|
|
+ 'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
|
|
+ }, 'HTTP::Headers' );
|
|
|
|
|
+$VAR5 = '{"id":8675309,"suite_id":9,"name":"TestingSuite2","description":"ACQUIRE CLOTHES, BOOTS AND MOTORCYCLE","milestone_id":null,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"config":null,"config_ids":[],"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":null,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"}';
|
|
|
|
|
+$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
$VAR1 = 'index.php?/api/v2/get_runs/9';
|
|
$VAR1 = 'index.php?/api/v2/get_runs/9';
|
|
|
$VAR2 = '200';
|
|
$VAR2 = '200';
|
|
|
$VAR3 = 'OK';
|
|
$VAR3 = 'OK';
|
|
@@ -876,7 +903,8 @@ $VAR4 = bless( {
|
|
|
'content-type' => 'application/json; charset=utf-8',
|
|
'content-type' => 'application/json; charset=utf-8',
|
|
|
'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
}, 'HTTP::Headers' );
|
|
}, 'HTTP::Headers' );
|
|
|
-$VAR5 = '[{"id":23,"name":"GosPlan","description":"Soviet 5-year agriculture plan to liquidate Kulaks","milestone_id":8,"assignedto_id":null,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"created_on":1419364930,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/plans\\/view\\/23"}]';
|
|
|
|
|
|
|
+$VAR5 = '[{"id":23,"name":"GosPlan","description":"Soviet 5-year agriculture plan to liquidate Kulaks","milestone_id":8,"assignedto_id":null,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"created_on":1419364930,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/plans\\/view\\/23"},
|
|
|
|
|
+{"id":24,"name":"mah dubz plan","description":"bogozone","milestone_id":8,"assignedto_id":null,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"created_on":1419364930,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/plans\\/view\\/24"}]';
|
|
|
$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -908,6 +936,34 @@ $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4,
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
|
|
+$VAR1 = 'index.php?/api/v2/get_plan/24';
|
|
|
|
|
+$VAR2 = '200';
|
|
|
|
|
+$VAR3 = 'OK';
|
|
|
|
|
+$VAR4 = bless( {
|
|
|
|
|
+ 'connection' => 'close',
|
|
|
|
|
+ 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
|
|
|
|
|
+ 'client-response-num' => 1,
|
|
|
|
|
+ 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
|
|
|
|
|
+ 'client-peer' => '192.168.122.217:80',
|
|
|
|
|
+ 'content-length' => '1289',
|
|
|
|
|
+ '::std_case' => {
|
|
|
|
|
+ 'client-date' => 'Client-Date',
|
|
|
|
|
+ 'x-powered-by' => 'X-Powered-By',
|
|
|
|
|
+ 'client-response-num' => 'Client-Response-Num',
|
|
|
|
|
+ 'client-peer' => 'Client-Peer'
|
|
|
|
|
+ },
|
|
|
|
|
+ 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
|
|
|
|
|
+ 'content-type' => 'application/json; charset=utf-8',
|
|
|
|
|
+ 'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
|
|
+ }, 'HTTP::Headers' );
|
|
|
|
|
+$VAR5 = '{"id":24,"name":"mah dubz plan","description":"bogoplan","milestone_id":8,"assignedto_id":null,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"created_on":1419364930,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/plans\\/view\\/24","entries":[{"id":"271443a5-aacf-467e-8993-b4f7001195cf","suite_id":9,"name":"Executing the great plan","runs":[{"id":1,"suite_id":9,"name":"TestingSuite","description":null,"milestone_id":8,"assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":23,"entry_index":1,"entry_id":"271443a5-aacf-467e-8993-b4f7001195cf","config":"testConfig","config_ids":[2],"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/24"}]}]}';
|
|
|
|
|
+$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
$VAR1 = 'index.php?/api/v2/get_tests/22';
|
|
$VAR1 = 'index.php?/api/v2/get_tests/22';
|
|
@@ -992,6 +1048,33 @@ $mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4,
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
|
|
+$VAR1 = 'index.php?/api/v2/get_tests/8675309';
|
|
|
|
|
+$VAR2 = '200';
|
|
|
|
|
+$VAR3 = 'OK';
|
|
|
|
|
+$VAR4 = bless( {
|
|
|
|
|
+ 'connection' => 'close',
|
|
|
|
|
+ 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
|
|
|
|
|
+ 'client-response-num' => 1,
|
|
|
|
|
+ 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
|
|
|
|
|
+ 'client-peer' => '192.168.122.217:80',
|
|
|
|
|
+ 'content-length' => '276',
|
|
|
|
|
+ '::std_case' => {
|
|
|
|
|
+ 'client-date' => 'Client-Date',
|
|
|
|
|
+ 'x-powered-by' => 'X-Powered-By',
|
|
|
|
|
+ 'client-response-num' => 'Client-Response-Num',
|
|
|
|
|
+ 'client-peer' => 'Client-Peer'
|
|
|
|
|
+ },
|
|
|
|
|
+ 'client-date' => 'Tue, 23 Dec 2014 20:02:11 GMT',
|
|
|
|
|
+ 'content-type' => 'application/json; charset=utf-8',
|
|
|
|
|
+ 'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
|
|
+ }, 'HTTP::Headers' );
|
|
|
|
|
+$VAR5 = '[{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"STORAGE TANKS SEARED","type_id":6,"priority_id":4,"estimate":null,"estimate_forecast":null,"refs":null,"milestone_id":null,"custom_preconds":null,"custom_steps":null,"custom_expected":null},{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"NOT SO SEARED AFTER ARR"},{"id":15,"case_id":8,"status_id":3,"assignedto_id":null,"run_id":22,"title":"skipall.test"} ]';
|
|
|
|
|
+$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
$VAR1 = 'index.php?/api/v2/get_test/15';
|
|
$VAR1 = 'index.php?/api/v2/get_test/15';
|
|
|
$VAR2 = '200';
|
|
$VAR2 = '200';
|
|
|
$VAR3 = 'OK';
|
|
$VAR3 = 'OK';
|
|
@@ -1419,7 +1502,53 @@ $VAR4 = bless( {
|
|
|
'content-type' => 'application/json; charset=utf-8',
|
|
'content-type' => 'application/json; charset=utf-8',
|
|
|
'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
}, 'HTTP::Headers' );
|
|
}, 'HTTP::Headers' );
|
|
|
-$VAR5 = '[]';
|
|
|
|
|
|
|
+#Ripped from the headlines, lol -- see TR documentation
|
|
|
|
|
+$VAR5 = '[
|
|
|
|
|
+ {
|
|
|
|
|
+ "configs": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "group_id": 1,
|
|
|
|
|
+ "id": 1,
|
|
|
|
|
+ "name": "Chrome"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "group_id": 1,
|
|
|
|
|
+ "id": 2,
|
|
|
|
|
+ "name": "Firefox"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "group_id": 1,
|
|
|
|
|
+ "id": 3,
|
|
|
|
|
+ "name": "Internet Explorer"
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ "id": 1,
|
|
|
|
|
+ "name": "Browsers",
|
|
|
|
|
+ "project_id": 1
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "configs": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "group_id": 2,
|
|
|
|
|
+ "id": 6,
|
|
|
|
|
+ "name": "Ubuntu 12"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "group_id": 2,
|
|
|
|
|
+ "id": 4,
|
|
|
|
|
+ "name": "Windows 7"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "group_id": 2,
|
|
|
|
|
+ "id": 5,
|
|
|
|
|
+ "name": "Windows 8"
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ "id": 2,
|
|
|
|
|
+ "name": "Operating Systems",
|
|
|
|
|
+ "project_id": 1
|
|
|
|
|
+ }
|
|
|
|
|
+]';
|
|
|
$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1446,7 +1575,106 @@ $VAR4 = bless( {
|
|
|
'content-type' => 'application/json; charset=utf-8',
|
|
'content-type' => 'application/json; charset=utf-8',
|
|
|
'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
}, 'HTTP::Headers' );
|
|
}, 'HTTP::Headers' );
|
|
|
-$VAR5 = '["testConfig"]';
|
|
|
|
|
|
|
+$VAR5 = '[{
|
|
|
|
|
+ "configs": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "group_id": 1,
|
|
|
|
|
+ "id": 1,
|
|
|
|
|
+ "name": "testConfig"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "group_id": 1,
|
|
|
|
|
+ "id": 2,
|
|
|
|
|
+ "name": "testPlatform1"
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ "id": 1,
|
|
|
|
|
+ "name": "Bullpucky",
|
|
|
|
|
+ "project_id": 1
|
|
|
|
|
+ }
|
|
|
|
|
+]';
|
|
|
|
|
+$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
|
|
+$VAR1 = 'index.php?/api/v2/add_plan_entry/23';
|
|
|
|
|
+$VAR2 = '200';
|
|
|
|
|
+$VAR3 = 'OK';
|
|
|
|
|
+$VAR4 = bless( {
|
|
|
|
|
+ 'connection' => 'close',
|
|
|
|
|
+ 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
|
|
|
|
|
+ 'client-response-num' => 1,
|
|
|
|
|
+ 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
|
|
|
|
|
+ 'client-peer' => '192.168.122.217:80',
|
|
|
|
|
+ 'content-length' => '0',
|
|
|
|
|
+ '::std_case' => {
|
|
|
|
|
+ 'client-date' => 'Client-Date',
|
|
|
|
|
+ 'x-powered-by' => 'X-Powered-By',
|
|
|
|
|
+ 'client-response-num' => 'Client-Response-Num',
|
|
|
|
|
+ 'client-peer' => 'Client-Peer'
|
|
|
|
|
+ },
|
|
|
|
|
+ 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
|
|
|
|
|
+ 'content-type' => 'application/json; charset=utf-8',
|
|
|
|
|
+ 'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
|
|
+ }, 'HTTP::Headers' );
|
|
|
|
|
+$VAR5 = '{"runs": [{"id":666}]}';
|
|
|
|
|
+$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
|
|
+$VAR1 = 'index.php?/api/v2/add_plan_entry/24';
|
|
|
|
|
+$VAR2 = '200';
|
|
|
|
|
+$VAR3 = 'OK';
|
|
|
|
|
+$VAR4 = bless( {
|
|
|
|
|
+ 'connection' => 'close',
|
|
|
|
|
+ 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
|
|
|
|
|
+ 'client-response-num' => 1,
|
|
|
|
|
+ 'date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
|
|
|
|
|
+ 'client-peer' => '192.168.122.217:80',
|
|
|
|
|
+ 'content-length' => '0',
|
|
|
|
|
+ '::std_case' => {
|
|
|
|
|
+ 'client-date' => 'Client-Date',
|
|
|
|
|
+ 'x-powered-by' => 'X-Powered-By',
|
|
|
|
|
+ 'client-response-num' => 'Client-Response-Num',
|
|
|
|
|
+ 'client-peer' => 'Client-Peer'
|
|
|
|
|
+ },
|
|
|
|
|
+ 'client-date' => 'Tue, 23 Dec 2014 20:02:12 GMT',
|
|
|
|
|
+ 'content-type' => 'application/json; charset=utf-8',
|
|
|
|
|
+ 'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
|
|
+ }, 'HTTP::Headers' );
|
|
|
|
|
+$VAR5 = '{"runs": [{"id":8675309}]}';
|
|
|
|
|
+$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+{
|
|
|
|
|
+
|
|
|
|
|
+$VAR1 = 'index.php?/api/v2/get_run/666';
|
|
|
|
|
+$VAR2 = '200';
|
|
|
|
|
+$VAR3 = 'OK';
|
|
|
|
|
+$VAR4 = bless( {
|
|
|
|
|
+ 'connection' => 'close',
|
|
|
|
|
+ 'x-powered-by' => 'PHP/5.5.9-1ubuntu4.5',
|
|
|
|
|
+ 'client-response-num' => 1,
|
|
|
|
|
+ 'date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
|
|
|
|
|
+ 'client-peer' => '192.168.122.217:80',
|
|
|
|
|
+ 'content-length' => '654',
|
|
|
|
|
+ '::std_case' => {
|
|
|
|
|
+ 'client-date' => 'Client-Date',
|
|
|
|
|
+ 'x-powered-by' => 'X-Powered-By',
|
|
|
|
|
+ 'client-response-num' => 'Client-Response-Num',
|
|
|
|
|
+ 'client-peer' => 'Client-Peer'
|
|
|
|
|
+ },
|
|
|
|
|
+ 'client-date' => 'Tue, 23 Dec 2014 20:02:10 GMT',
|
|
|
|
|
+ 'content-type' => 'application/json; charset=utf-8',
|
|
|
|
|
+ 'server' => 'Apache/2.4.7 (Ubuntu)'
|
|
|
|
|
+ }, 'HTTP::Headers' );
|
|
|
|
|
+$VAR5 = '{"id":666,"suite_id":9,"name":"Dynamic Plan Run","assignedto_id":null,"include_all":true,"is_completed":false,"completed_on":null,"config":null,"config_ids":[],"passed_count":0,"blocked_count":0,"untested_count":1,"retest_count":0,"failed_count":0,"custom_status1_count":0,"custom_status2_count":0,"custom_status3_count":0,"custom_status4_count":0,"custom_status5_count":0,"custom_status6_count":0,"custom_status7_count":0,"project_id":9,"plan_id":23,"created_on":1419364929,"created_by":1,"url":"http:\\/\\/testrail.local\\/\\/index.php?\\/runs\\/view\\/22"}';
|
|
|
$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
$mockObject->map_response(qr/\Q$VAR1\E/,HTTP::Response->new($VAR2, $VAR3, $VAR4, $VAR5));
|
|
|
|
|
|
|
|
}
|
|
}
|