You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In 1.5.4 Kaspresso, with withForcedAllureSupport(), if testName contains one of these symbols: : , " , *, ?, <, >, | , / then the Runner can't create a file in Android emulator.
It throws java.io.IOException: Operation not permitted exception while trying to execute method .createFileIfNeeded() from this block com.kaspersky.kaspresso.files.resources.impl.DefaultResourceFilesProvider:
Even though, the test itself is Passed, in after section it can't stop the video recording, it shows error Can't stop video recording as it was not started
To Reproduce
Steps to reproduce the behavior:
To reproduce the issue, you can run the test from Kaspresso framework, from com.kaspersky.kaspresso.alluresupport.sample.AllureSupportTest class.
For the test counter() add testName with any of the symbols, for example: "123: 123"
Execute the test
You'll see in the Logcat that the test was PASSED, but due to java.io.IOException: Operation not permitted it was marked as FAILED in the test run
remove : symbol from the testName,
Execute the test
The test is PASSED, and in the test run it also was marked as PASSED
Expected behavior
It's expected that the symbols in the testName doesn't affect to the status of the test in the test run
Possible solution:
in com.kaspersky.components.alluresupport.interceptors.testrun.HackyVideoRecordingTestInterceptor class
in onTestStarted() method
replace with:
val videoName = testInfo.testName.replace("/|:|\"|\\*|\\?|<|>|\\|".toRegex(), "_")
videos.record("Video_${videoName}")
Describe the bug
In 1.5.4 Kaspresso, with
withForcedAllureSupport()
, iftestName
contains one of these symbols::
,"
,*
,?
,<
,>
,|
,/
then the Runner can't create a file in Android emulator.It throws
java.io.IOException: Operation not permitted
exception while trying to execute method.createFileIfNeeded()
from this block com.kaspersky.kaspresso.files.resources.impl.DefaultResourceFilesProvider:Even though, the test itself is Passed, in after section it can't stop the video recording, it shows error
Can't stop video recording as it was not started
To Reproduce
Steps to reproduce the behavior:
To reproduce the issue, you can run the test from Kaspresso framework, from com.kaspersky.kaspresso.alluresupport.sample.AllureSupportTest class.
counter()
addtestName
with any of the symbols, for example:"123: 123"
java.io.IOException: Operation not permitted
it was marked as FAILED in the test run:
symbol from the testName,Expected behavior
It's expected that the symbols in the testName doesn't affect to the status of the test in the test run
Desktop:
Android emulator:
Additional context
The text was updated successfully, but these errors were encountered: