File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
src/Magento/FunctionalTestingFramework/Suite/views Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,11 @@ class {{suiteName}} extends \Codeception\GroupObject
34
34
if (self::$CURRENT_TEST_RUN == 1) {
35
35
print sprintf(self::$HOOK_EXECUTION_INIT , " before" );
36
36
37
- {{> testActions} }
37
+ try {
38
+ {{> testActions} }
39
+ } catch (\Exception $e) {
40
+ print $e -> getMessage ();
41
+ }
38
42
39
43
print sprintf(self::$HOOK_EXECUTION_END, "before");
40
44
}
@@ -47,7 +51,12 @@ class {{suiteName}} extends \Codeception\GroupObject
47
51
if (self::$CURRENT_TEST_RUN == self::$TEST_COUNT ) {
48
52
print sprintf(self::$HOOK_EXECUTION_INIT , " after" );
49
53
50
- {{> testActions} }
54
+ try {
55
+ {{> testActions} }
56
+ } catch (\Exception $e) {
57
+ print $e -> getMessage ();
58
+ }
59
+
51
60
52
61
print sprintf(self::$HOOK_EXECUTION_END, "after");
53
62
}
Original file line number Diff line number Diff line change @@ -10,21 +10,16 @@ if ($webDriver->webDriver != null) {
10
10
11
11
// initialize the webdriver session
12
12
$webDriver->_initializeSession();
13
- try {
14
- // execute user specified actions
15
13
{ {/webDriverInit} }
16
14
{ {#webDriverReset} }
17
- } catch (\Exception $e) {
18
- print $e -> getMessage ();
19
- }
20
15
21
16
// reset configuration and close session
22
17
$this->getModule('\Magento\FunctionalTestingFramework\Module\MagentoWebDriver')->_resetConfig();
23
18
$webDriver->webDriver->close();
24
19
$webDriver->webDriver = null;
25
20
{ {/webDriverReset} }
26
21
{ {#action} }
27
- { {{action} }}
22
+ { {{action} }}
28
23
{ {/action} }
29
24
{ {#createData} }
30
25
${ {entityName} } = DataObjectHandler::getInstance()->getObject("{ {entityName} }");
You can’t perform that action at this time.
0 commit comments