webrtc / KITE

KITE is a test engine designed to test WebRTC interoperability across browsers
Apache License 2.0
468 stars 126 forks source link

unable to automate test case in firefox with fake mp4 video #147

Closed RajathTester closed 4 years ago

RajathTester commented 4 years ago

Hi when trying to automate kite testcase with fake mp4 video for firefox client getting a 403 forbidden access error.

2020-07-15 19:17:29,857 INFO - kiteServerCommand => http://localhost:8080/KITEServer/command?id=null&ip=localhost&cmd=play%20D:/desktop/Progress/FakeVideos/IVSAVideoV02.mp4%20& 2020-07-15 19:17:30,533 ERROR - java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/KITEServer/command?id=null&ip=localhost&cmd=play%20D:/desktop/Progress/FakeVideos/IVSAVideoV02.mp4%20& at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at io.cosmosoftware.kite.util.TestUtils.kiteServerCommand(TestUtils.java:986) at org.webrtc.kite.WebDriverFactory.createWebDriver(WebDriverFactory.java:232) at org.webrtc.kite.config.client.Client.createWebDriver(Client.java:482) at org.webrtc.kite.tests.TestRunner.initClient(TestRunner.java:82) at org.webrtc.kite.tests.TestRunner.(TestRunner.java:71) at org.webrtc.kite.tests.TestRunnerCreator.call(TestRunnerCreator.java:33) at org.webrtc.kite.tests.TestRunnerCreator.call(TestRunnerCreator.java:12) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

any help would be highly appreciated. also attached clients configuration using inside json config file

"clients": [ { "browserName": "firefox", "platform": "localhost", "video": { "filename": "/IVSAVideoV02", "directory": "D:/desktop/Progress/FakeVideos", "type": "Video" } } ]

RajathTester commented 4 years ago

hi @namvuCosmo can you please help. I am stuck here any help would be of great value.

Thanks in advance.

namvuCosmo commented 4 years ago

Hi,

Can you please provide the steps to reproduce your issue, on how your grid is setup and how your test is launched?

Is KITEServer something you created or something you got from somewhere? Normal run with KITE-Engine shouldn't involve this.

Also, "filename": "/IVSAVideoV02", shouldn't have / at the beginning.

RajathTester commented 4 years ago

Hi @namvuCosmo ,

I am trying to run KiteTest case on a platform developed internally in our company using openvdi.

Steps:

  1. open URL
  2. login to conference room
  3. clicking share webcam
  4. stay in meeting for about 20 seconds

regarding KiteServer, i have not taken it from any where. I simplify install regular KITE2.0 by following the steps mentioned in https://github.com/webrtc/KITE. Although i was able to run testcases properly with fake video in chrome browser, in firefox i am getting this issues.

Note: I have faced the similar issues when i was running some sample test on openvdi and jitsi platform mentioned in https://github.com/CoSMoSoftware/KITE-Sample-Tests

Below is the image of the cloned repository in my local machine.

image

Thanks in advance.

RajathTester commented 4 years ago

Hi,

regarding "/" in filename, if i donot give it it was not able to get the properly. so i started giving and it was working fine. At least in case of chrome browser that is what i have observerd.

RajathTester commented 4 years ago

Hi @namvuCosmo ,

i have going thorugh the code written in webDriverFactory inside the KITEFramework

` /**

Thanks in advance.

namvuCosmo commented 4 years ago

Oh, right. I remember this.

With firefox there''s no flags that we can use to set the fake media, we had to use some other web server on top of it.

Sorry but I don't think I have a solution for you to use fake media files with firefox right now.

RajathTester commented 4 years ago

thank you @namvuCosmo for the time and help.