webrtc / KITE

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

Failed to create new test with KITE #177

Closed valdrinnz closed 3 years ago

valdrinnz commented 3 years ago

Tried to create a new test with kite_init, there is showing a message Failed to create KITE-TestName-Test

I'm trying with last version.

JRuedas commented 3 years ago

Tried to create a new test with kite_init, there is showing a message Failed to create KITE-TestName-Test

I'm trying with last version.

The same happens to me. If you check the _kiteinit script it tries to execute the following command:

java -cp $KITE_HOME/scripts/init/init.zip Init $1

Apparently something fails when it is replacing the template elements with the given name.

I managed to troubleshoot the problem after decompiling the Init.class inside the _$KITEHOME/scripts/init/init.zip. The program tries to replace several files that are missing in the _$KITEHOME/scripts/init/pack.zip.

The files are:

If you add those files to the pack.zip it creates the template correctly.

After that, I checked the pack.zip of the previous commit and this one contains the missing files so I guess that either the Init.zip contains an outdated .class or the pack.zip must contain the files.

I don't know where the template or the Init.java are stored so I can't fix the problem.

@A-nguyenv ping just to let you know about the issue.

A-nguyenv commented 3 years ago

Hello, Thanks for the feedback, there was indeed a problem with the pack.zip, it has been fixed. Let me know if you still face any issue.

valdrinnz commented 3 years ago

Thanks for fixing this issue.

Now we are able to create new tests with KITE. But when running them in JavaScript there's showing an error "TypeError: Cannot read property 'toLocaleUpperCase' of undefined".

That can be fixed when you go to package.json file and change version of kite-common to 0.1.15. Then npm install.

image

Also please fix this syntax error in AppRTC test js.config file. It took me half an hour yesterday to figure out why tests aren't running.

image