testManage.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?php
  2. global $lang,$config;
  3. $testManage = new stdClass();
  4. $testManage->name = 'testManage';
  5. $testManage->title = $lang->tutorial->testManage->title;
  6. $testManage->icon = 'sitemap text-important text-lg';
  7. $testManage->type = 'basic';
  8. $testManage->modules = 'testcase,testreport,testtask,bug';
  9. $testManage->app = 'project';
  10. $testManage->tasks = array();
  11. $testManage->tasks['testManage'] = array();
  12. $testManage->tasks['testManage']['name'] = 'testManage';
  13. $testManage->tasks['testManage']['title'] = $lang->tutorial->testManage->title;
  14. $testManage->tasks['testManage']['startUrl'] = array('qa', 'index');
  15. $testManage->tasks['testManage']['steps'] = array();
  16. $testManage->tasks['testManage']['steps'][] = array(
  17. 'type' => 'openApp',
  18. 'app' => 'qa',
  19. 'title' => $lang->tutorial->testManage->step1->name,
  20. 'desc' => $lang->tutorial->testManage->step1->desc
  21. );
  22. $testManage->tasks['testManage']['steps'][] = array(
  23. 'type' => 'clickNavbar',
  24. 'target' => 'testcase',
  25. 'page' => 'qa-index',
  26. 'title' => $lang->tutorial->testManage->step2->name,
  27. 'desc' => $lang->tutorial->testManage->step2->desc
  28. );
  29. $testManage->tasks['testManage']['steps'][] = array(
  30. 'type' => 'click',
  31. 'target' => '#actionBar a.createBtn',
  32. 'page' => 'testcase-browse',
  33. 'url' => array('testcase', 'browse', 'productID=1'),
  34. 'title' => $lang->tutorial->testManage->step3->name,
  35. 'desc' => $lang->tutorial->testManage->step3->desc
  36. );
  37. $testManage->tasks['testManage']['steps'][] = array(
  38. 'type' => 'form',
  39. 'page' => 'testcase-create',
  40. 'title' => $lang->tutorial->testManage->step4->name
  41. );
  42. $testManage->tasks['testManage']['steps'][] = array(
  43. 'type' => 'saveForm',
  44. 'page' => 'testcase-create',
  45. 'title' => $lang->tutorial->testManage->step5->name,
  46. 'desc' => $lang->tutorial->testManage->step5->desc
  47. );
  48. $testManage->tasks['testManage']['steps'][] = array(
  49. 'type' => 'clickNavbar',
  50. 'target' => 'testtask',
  51. 'page' => 'testcase-browse',
  52. 'url' => array('testcase', 'browse', 'productID=1'),
  53. 'title' => $lang->tutorial->testManage->step6->name,
  54. 'desc' => $lang->tutorial->testManage->step6->desc
  55. );
  56. $testManage->tasks['testManage']['steps'][] = array(
  57. 'type' => 'click',
  58. 'target' => '#actionBar a',
  59. 'page' => 'testtask-browse',
  60. 'title' => $lang->tutorial->testManage->step7->name,
  61. 'desc' => $lang->tutorial->testManage->step7->desc
  62. );
  63. $testManage->tasks['testManage']['steps'][] = array(
  64. 'type' => 'form',
  65. 'page' => 'testtask-create',
  66. 'title' => $lang->tutorial->testManage->step8->name
  67. );
  68. $testManage->tasks['testManage']['steps'][] = array(
  69. 'type' => 'saveForm',
  70. 'page' => 'testtask-create',
  71. 'title' => $lang->tutorial->testManage->step9->name,
  72. 'desc' => $lang->tutorial->testManage->step9->desc
  73. );
  74. $testManage->tasks['testManage']['steps'][] = array(
  75. 'type' => 'click',
  76. 'target' => 'div.dtable div[data-col="name"][data-row="1"] a',
  77. 'page' => 'testtask-browse',
  78. 'url' => array('testtask', 'browse', 'productID=1'),
  79. 'title' => $lang->tutorial->testManage->step10->name,
  80. 'desc' => $lang->tutorial->testManage->step10->desc
  81. );
  82. $testManage->tasks['testManage']['steps'][] = array(
  83. 'type' => 'click',
  84. 'target' => '#actionBar a.linkCase-btn',
  85. 'page' => 'testtask-cases',
  86. 'title' => $lang->tutorial->testManage->step11->name,
  87. 'desc' => $lang->tutorial->testManage->step11->desc
  88. );
  89. $testManage->tasks['testManage']['steps'][] = array(
  90. 'type' => 'selectRow',
  91. 'target' => 'div.dtable div.dtable-body div[data-col="id"]',
  92. 'page' => 'testtask-linkCase',
  93. 'title' => $lang->tutorial->testManage->step12->name
  94. );
  95. $testManage->tasks['testManage']['steps'][] = array(
  96. 'type' => 'click',
  97. 'target' => 'div.dtable-footer nav.toolbar button',
  98. 'page' => 'testtask-linkCase',
  99. 'title' => $lang->tutorial->testManage->step13->name,
  100. 'desc' => $lang->tutorial->testManage->step13->desc
  101. );
  102. $testManage->tasks['testManage']['steps'][] = array(
  103. 'type' => 'click',
  104. 'target' => 'div.dtable div[data-col="actions"][data-row="1"] a.testtask-runCase-btn',
  105. 'page' => 'testtask-cases',
  106. 'url' => array('testtask', 'cases', 'taskID=1'),
  107. 'title' => $lang->tutorial->testManage->step14->name,
  108. 'desc' => $lang->tutorial->testManage->step14->desc
  109. );
  110. $testManage->tasks['testManage']['steps'][] = array(
  111. 'type' => 'form',
  112. 'page' => 'testtask-cases',
  113. 'title' => $lang->tutorial->testManage->step15->name
  114. );
  115. $testManage->tasks['testManage']['steps'][] = array(
  116. 'type' => 'saveForm',
  117. 'page' => 'testtask-cases',
  118. 'title' => $lang->tutorial->testManage->step16->name,
  119. 'desc' => $lang->tutorial->testManage->step16->desc
  120. );
  121. $testManage->tasks['testManage']['steps'][] = array(
  122. 'type' => 'click',
  123. 'target' => 'div.dtable div[data-col="actions"][data-row="1"] a.testtask-results-btn',
  124. 'page' => 'testtask-cases',
  125. 'url' => array('testtask', 'cases', 'taskID=1'),
  126. 'title' => $lang->tutorial->testManage->step17->name,
  127. 'desc' => $lang->tutorial->testManage->step17->desc
  128. );
  129. $testManage->tasks['testManage']['steps'][] = array(
  130. 'type' => 'click',
  131. 'target' => '.resultSteps div.steps-body div[data-id="1"] div.step-id',
  132. 'page' => 'testtask-cases',
  133. 'title' => $lang->tutorial->testManage->step18->name
  134. );
  135. $testManage->tasks['testManage']['steps'][] = array(
  136. 'type' => 'saveForm',
  137. 'target' => 'div.resultSteps button.to-bug-button',
  138. 'page' => 'testtask-cases',
  139. 'title' => $lang->tutorial->testManage->step19->name,
  140. 'desc' => $lang->tutorial->testManage->step19->desc
  141. );
  142. $testManage->tasks['testManage']['steps'][] = array(
  143. 'type' => 'form',
  144. 'page' => 'bug-create',
  145. 'url' => array('bug', 'create', 'productID=1&branch=0&extras=caseID=1,version=1,resultID=1,runID=1,testtask=1,buildID=1,stepList=1'),
  146. 'title' => $lang->tutorial->testManage->step20->name
  147. );
  148. $testManage->tasks['testManage']['steps'][] = array(
  149. 'type' => 'saveForm',
  150. 'page' => 'bug-create',
  151. 'title' => $lang->tutorial->testManage->step21->name
  152. );
  153. $testManage->tasks['testManage']['steps'][] = array(
  154. 'type' => 'clickNavbar',
  155. 'target' => 'testtask',
  156. 'page' => 'bug-browse',
  157. 'url' => array('bug', 'browse', 'productID=1'),
  158. 'title' => $lang->tutorial->testManage->step22->name
  159. );
  160. $testManage->tasks['testManage']['steps'][] = array(
  161. 'type' => 'click',
  162. 'target' => 'div.dtable div[data-col="actions"] a.testreport-browse-btn',
  163. 'page' => 'testtask-browse',
  164. 'title' => $lang->tutorial->testManage->step23->name,
  165. 'desc' => $lang->tutorial->testManage->step23->desc
  166. );
  167. $testManage->tasks['testManage']['steps'][] = array(
  168. 'type' => 'form',
  169. 'page' => 'testreport-create',
  170. 'url' => array('testreport', 'create', 'executionID=3'),
  171. 'title' => $lang->tutorial->testManage->step24->name
  172. );
  173. $testManage->tasks['testManage']['steps'][] = array(
  174. 'type' => 'saveForm',
  175. 'page' => 'testreport-create',
  176. 'title' => $lang->tutorial->testManage->step25->name,
  177. 'desc' => $lang->tutorial->testManage->step25->desc
  178. );