MCPcopy Create free account
hub / github.com/TestLeafInc/Simba / tearDown

Method tearDown

src/main/java/com/force/base/ProjectHooks.java:140–156  ·  view source on GitHub ↗

Will be invoked after once for every test case execution and a) video & tracing will be created in the given folder b) result will be published @author TestLeaf

()

Source from the content-addressed store, hash-verified

138 * @author TestLeaf
139 */
140 @AfterMethod(alwaysRun = true)
141 public void tearDown() {
142 try {
143
144 // End tracing
145 getContext().tracing().stop(new Tracing.StopOptions().setPath(Paths.get(tracesFolderName+"/"+testcaseName+".zip")));
146 Video video = getPage().video();
147 getPage().close();
148 video.saveAs(Paths.get(videoFolderName+"/"+testcaseName+".webm"));
149 getContext().close(); // video will be saved
150 video.delete();
151 getPlaywright().close();
152 endResult();
153 } catch (Exception e) {
154 e.printStackTrace();
155 }
156 }
157
158 @DataProvider
159 public Object[][] getData() throws IOException {

Callers

nothing calls this directly

Calls 5

getContextMethod · 0.80
getMethod · 0.80
getPageMethod · 0.80
getPlaywrightMethod · 0.80
endResultMethod · 0.80

Tested by

no test coverage detected