}
Note: I removed other method which does not have an issue.
While executing a single test case (from the scripts view page), I notice I am login in twice and only to first one stop at after login and then it close the browser open another browser login and finished the test case. Note the first case does report any failure. Also I notice in the log that samplebefore and after testcase method called twice.
And this the proof that sampleAfterTestCase method called twice. from console:
“Caused by: org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘ZELUS’, ip: ‘10.1.101.151’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: driver.version: RemoteWebDriver”
So, not sure why samplebefore and after testcase method called twice? Bug?
Unfortunately I can’t still reproduce this issue. I noticed in your project there’s a folder Drivers which contain a MultiSourcedProperties-1.0.jar which was developed by @kazurayam
At this point we’re grasping at straws here, can you delete that file and re-run the test ?
When the breakpoint is hit, take a screenshot of the execution stack (the Debug panel that appears on the left of the screen). Make sure you capture ALL of it!
Click the debugger Resume button
Let the test run. When the breakpoint is hit again, take another screenshot of the Debug panel - Make sure you capture all of it.
Post the screenshots here.
If you want to be super helpful, repeat the above procedure for the AfterTestCase method.
Test Suites/Demo_Suite - Chrome - 20191028_155337…0/1(0%)
2019-10-28 15:53:39.031 INFO c.k.katalon.core.main.TestSuiteExecutor - START Test Suites/Demo_Suite
2019-10-28 15:53:39.063 INFO c.k.katalon.core.main.TestSuiteExecutor - hostName = xxxxxx
2019-10-28 15:53:39.065 INFO c.k.katalon.core.main.TestSuiteExecutor - os = Windows 10 64bit
2019-10-28 15:53:39.066 INFO c.k.katalon.core.main.TestSuiteExecutor - hostAddress = 10.1.101.151
2019-10-28 15:53:39.068 INFO c.k.katalon.core.main.TestSuiteExecutor - katalonVersion = 7.0.4.1
Test Suites/Demo_Suite
Test Suites/Demo_Suite
2019-10-28 15:53:39.275 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-10-28 15:53:39.275 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/TestCase1
Test Cases/TestCase1
[:]
Test Cases/TestCase1
[:]
2019-10-28 15:53:39.450 DEBUG testcase.TestCase1 - 1: println(“Hello world”)
Hello world
Test Cases/TestCase1
PASSED
Test Cases/TestCase1
PASSED
2019-10-28 15:53:39.504 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/TestCase1
Test Suites/Demo_Suite
2019-10-28 15:53:39.786 INFO com.kms.katalon.core.util.KeywordUtil - Start generating HTML report folder at: C:\Test\TestCase\Reports\20191028_155337\Demo_Suite\20191028_155337…
2019-10-28 15:53:39.818 INFO com.kms.katalon.core.util.KeywordUtil - HTML report generated
2019-10-28 15:53:39.819 INFO com.kms.katalon.core.util.KeywordUtil - Start generating CSV report folder at: C:\Test\TestCase\Reports\20191028_155337\Demo_Suite\20191028_155337…
2019-10-28 15:53:39.841 INFO com.kms.katalon.core.util.KeywordUtil - CSV report generated
Test Suites/Demo_Suite
2019-10-28 15:53:39.906 INFO c.k.katalon.core.main.TestSuiteExecutor - --------------------
2019-10-28 15:53:39.906 INFO c.k.katalon.core.main.TestSuiteExecutor - END Test Suites/Demo_Suite
2019-10-28 15:53:39.906 INFO c.k.katalon.core.main.TestSuiteExecutor - ====================
Launcher status after execution process completed: Running
Start writing execution.uuid file to folder: C:\Test\TestCase\Reports\20191028_155337\Demo_Suite\20191028_155337
Start generating JUnit report folder at: C:\Test\TestCase\Reports\20191028_155337\Demo_Suite\20191028_155337…
JUnit report were generated at folder: C:\Test\TestCase\Reports\20191028_155337\Demo_Suite\20191028_155337
For real-time monitoring and better reporting capabilities please integrate this project with Katalon TestOps (more details at https://docs.katalon.com/katalon-analytics/docs/integration-with-katalon-studio.html#enable-integration)
Test Suites/Demo_Suite - Chrome - 20191028_155337…1/1(100%)
Execution completed. Exit code: 0.
Start clean up session
End check license task
End clean up session
Start release license task
License released
End release license task
All launchers terminated