23 'waitForPageLoad' => 1500,
25 'waitForLoadingMaskToDisappear' => 500,
29 'closeAdminNotification' => 10
44 private $parsedSteps = [];
51 private $annotations = [];
84 public function __construct($name, $parsedSteps, $annotations, $hooks, $filename =
null, $parentTest =
null)
87 $this->parsedSteps = $parsedSteps;
88 $this->annotations = $annotations;
89 $this->hooks = $hooks;
90 $this->filename = $filename;
91 $this->parentTest = $parentTest;
111 return $this->filename;
121 return $this->parentTest;
132 if (array_key_exists(
'skip', $this->annotations)) {
134 }
elseif (array_key_exists(
'group', $this->annotations) && (in_array(
"skip", $this->annotations[
'group']))) {
147 if (strpos($this->
name,
'Cest') && substr($this->
name, -4) ==
'Cest') {
151 return $this->
name .
'Cest';
161 return $this->annotations;
188 if (array_key_exists($hookName, $this->hooks)) {
189 $hookTime += $this->calculateWeightedActionTimes($this->hooks[$hookName]->getActions());
195 return $hookTime + $testTime;
204 private function calculateWeightedActionTimes($actions)
208 foreach ($actions as $action) {
211 $weight = self::TEST_ACTION_WEIGHT[$action->getType()];
212 if ($weight === self::WAIT_TIME_ATTRIBUTE) {
213 $weight = intval($action->getCustomActionAttributes()[$weight]) * 1000;
216 $actionTime += $weight;
234 if (array_key_exists($name, $this->annotations)) {
235 return $this->annotations[$name];
248 return $this->customData;
259 return $mergeUtil->resolveActionSteps($this->parsedSteps);
269 return $this->parsedSteps;
279 $debugInformation = [];
282 foreach ($orderList as $action) {
283 $debugInformation[] =
"\t" . $action->getType() .
' ' . $action->getStepKey();
286 return $debugInformation;
__construct($name, $parsedSteps, $annotations, $hooks, $filename=null, $parentTest=null)
elseif(isset( $params[ 'redirect_parent']))
const WAIT_TIME_ATTRIBUTE
getAnnotationByName($name)