Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocked testing with latest version #348

Closed
frankcapodanno opened this issue Sep 2, 2020 · 11 comments
Closed

Blocked testing with latest version #348

frankcapodanno opened this issue Sep 2, 2020 · 11 comments
Labels
stale Issues with no activity

Comments

@frankcapodanno
Copy link

With the latest version the plugin is blocked:

[INFO] Executing Jasmine Specs
[INFO] Reading https://chromedriver.storage.googleapis.com/ to seek [chromedriver]
[INFO] Latest version of [chromedriver] is 85.0.4183.87
[INFO] Exporting webdriver.chrome.driver as C:\Users\CapodaFr.m2\repository\webdriver\chromedriver\win32\85.0.4183.87\chromedriver.exe
Starting ChromeDriver 85.0.4183.87 (cd6713ebf92fa1cacc0f1a598df280093af0c5d7-refs/branch-heads/4183@{#1689}) on port 10942
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
Sep 02, 2020 4:02:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C

@klieber
Copy link
Collaborator

klieber commented Sep 20, 2020

@frankcapodanno , I just released a new version a few days ago 3.0-beta-01. Can you see if that works for you?

@frankcapodanno
Copy link
Author

frankcapodanno commented Sep 20, 2020

The problem seems to persist.
When I use jasmine:bdd goal I receive an error that I don't have permission with Jetty.
forbidden

When I use jasmine:test goal the build still remain blocked :

Executing Jasmine Specs
ChromeDriver was started successfully.
Sep 20, 2020 3:50:13 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C

I tested with :
OS: Windows 10
Maven : 3.6.2

That is my portion of pom.xml that I used:

           <plugin>
               <groupId>com.github.searls</groupId>
               <artifactId>jasmine-maven-plugin</artifactId>
               <version>3.0-beta-01</version>
               <executions>
                   <execution>
                       <goals>
                           <goal>test</goal>
                       </goals>
                   </execution>
               </executions>
               <configuration>
                   <jsSrcDir>${basedir}/src/main/webapp/js/</jsSrcDir>
                   <jsTestSrcDir>${basedir}/src/test/resources/jstests</jsTestSrcDir>
                   <preloadSources>
                       <source>${basedir}/src/main/webapp/js/simple.js</source>
                   </preloadSources>
               </configuration>
           </plugin>

Here the complete demo.

@borncodeguru
Copy link

Hi frankcapodanno, I am also facing same issue. Did you get any solution or workaround for it?

@frankcapodanno
Copy link
Author

Hi borncodeguru . At the moment I use just the release 2.2 (with jasmine 2.4.1) and just the goal jasmine:bdd . When you have the tests written with the new Jasmine it's not a good workaround !

@klieber
Copy link
Collaborator

klieber commented Sep 28, 2020

@frankcapodanno not really sure what's happening on your side but I pulled down your demo repository and I don't have any problems.

I ran mvn test and this was the result:

[INFO] --- jasmine-maven-plugin:3.0-beta-01:test (default) @ simplewar ---
[INFO] Executing Jasmine Specs
ChromeDriver was started successfully.
Sep 28, 2020 11:16:12 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
[INFO]
-------------------------------------------------------
 J A S M I N E   S P E C S
-------------------------------------------------------
[INFO]
Test Suite
  test spec

Results: 1 specs, 0 failures, 0 pending

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.239 s
[INFO] Finished at: 2020-09-28T11:16:14-05:00
[INFO] ------------------------------------------------------------------------

I also ran mvn jasmine:bdd and it looks fine as well:

image

@frankcapodanno
Copy link
Author

Hi @klieber ,
Do you have tested in Windows 10 with what version of Maven ?
I will try with an another machine. When its works I close the Problem.

Many Thanks
Francesco

@klieber
Copy link
Collaborator

klieber commented Sep 28, 2020

I tested on Windows 10 with the latest version of Maven. I wonder if you have a firewall or something preventing you from opening a port.

@ghost
Copy link

ghost commented Oct 19, 2020

Hi,

At my company we've been having the same issue since the 3.0 alpha release. It only seems to affect the Windows users, on macOS and linux it works fine. In our project we customize the jsSrcDir, jsTestSrcDir, 'jasmineTargetDir, and we have a list of preloadSources`.

We've actually developed a fix for it some time ago. Turns out changing ResourceHandlerConfiguration:getWelcomeFilePath from using platform specific file path separators to always forward slash fixed the issue for us.
I tested again with the latest 3.0 beta and I can still reproduce the issue, and the same patch fixes it too.

I'll submit a PR with this change.

@klieber
Copy link
Collaborator

klieber commented Nov 8, 2020

@frankcapodanno The latest version, 3.0-beta-02, includes the fix from @mdiotude. Let me know if that resolves your issue.

@github-actions
Copy link

github-actions bot commented Feb 4, 2021

This issue has been marked as stale because it has not been updated in 60 days. Please add a comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale Issues with no activity label Feb 4, 2021
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issues with no activity
Projects
None yet
Development

No branches or pull requests

3 participants