Closed nehagoel2712 closed 1 month ago
Please chech that values was applied, you can simple edit your config with:
kubectl edit config default -n moon
пт, 13 сент. 2024 г., 19:00 nehagoel2712 @.***>:
In our automation solution we are using Selenium4, C#, specflow, moon. And moon capabilities are like this:
_moonOptions = new Dictionary<string, object> { { "enableVNC", true }, { "name", testName }, { "enableVideo", true }, {"videoRetentionPeriod","24h" } };
ChromeOptions copt = new ChromeOptions(); copt.AddAdditionalOption("moon:options", _moonOptions); new RemoteWebDriver(new Uri(_remoteServerUri), copt.ToCapabilities(), TimeSpan.FromSeconds(Settings.Timeout));
we referred this https://aerokube.com/moon/latest/#video-recording to setup our storage and executed following commands:
helm upgrade --install --set=configs.default.storage.accessKey="
" -n moon moon aerokube/moon2 helm upgrade --install --set=configs.default.storage.secretKey=" " -n moon moon aerokube/moon2 helm upgrade --install --set=configs.default.storage.endpoint=" " -n moon moon aerokube/moon2 helm upgrade --install --set=configs.default.storage.bucket=" " -n moon moon aerokube/moon2 helm upgrade --install --set=configs.default.storage.filename="PocVideo" -n moon moon aerokube/moon2 After all this setup, when the test was executed, the video didn't record and was not uploaded to S3.
— Reply to this email directly, view it on GitHub https://github.com/aerokube/moon/issues/431, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23IJRZAARLJZ6GJUJE3ZWMD2TAVCNFSM6AAAAABOFU6XFGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDKMJWGU2DAMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
The editing config worked, and I am now able to upload videos on the s3 bucket.
But it seems that upload takes place in all cases (test case either pass or fail). Is there any way to capture/upload video to S3 only when test case fails?
@nehagoel2712 Moon does not know about tests and certainly whether test case passed or failed. Our recommendation is to enable video recording only when rerunning failed test cases.
In our automation solution we are using Selenium4, C#, specflow, moon. And moon capabilities are like this:
we referred this to setup our storage and executed following commands:
After all this setup, when the test was executed, the video didn't record and was not uploaded to S3.