Open zakaz opened 2 months ago
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 throwsjava.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