Forum Discussion

schowdhury's avatar
schowdhury
New Contributor
10 years ago

Unable to run my Selenium script in Test Complete.

Hello, I'm trying to run my Selenium script in Test Complete but unable to do so. Could anyone help please.

 

Junit path\Java path\Java libs path\Test folder path
C:\Selenium\junit\*;C:\Selenium\selenium-2.44.0\*;C:\Selenium\selenium-2.44.0\libs\*;C:\Selenium\workspace\PncPortal\bin\pncportalpack

Package name\Class name\Test name (Running individual test)
pncportalpack.PncPortalReg.Test_ID01_Account

 

Getting following error.

"java.exe" org.junit.runner.JUnitCore pncportalpack.PncPortalReg.Test_ID01_Account
JUnit version 4.10

Could not find class: pncportalpack.PncPortalReg.Test_ID01_Account

 

Thanks.

 

  • Thanks for your feedback. Support team figured it out. It's working now as a suite, not as an individual test. Below is the correct path. Thanks a lot.

    classpath:
    C:\Selenium\selenium-2.44.0\libs\junit-dep-4.11.jar;C:\Selenium\selenium-2.44.0\selenium-java-2.44.0.jar;C:\Selenium\selenium-2.44.0\libs\*;C:\Selenium\workspace\PncPortal\bin

    Test class name:
    pncportalpack.PncPortalReg

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Shahariar,

    I would modify your Java path a bit:

    C:\Selenium\junit\*;C:\Selenium\selenium-2.44.0\*;C:\Selenium\selenium-2.44.0\libs\*;C:\Selenium\workspace\PncPortal\bin\pncportalpack\*;

     

      • TanyaYatskovska's avatar
        TanyaYatskovska
        SmartBear Alumni (Retired)

        Hi Shahariar,

         

        Please check that you specified a valid path to the Java Virtual Machine executable (java.exe) in Tools | Options | Engines | Selenium project settings.

        If nothing helps, please pack C:\Selenium folder and send it to our Support Team ( http://support.smartbear.com/product-list/ ) with the description of the issue. They will try to identify what is going wrong.

  • Bobik's avatar
    Bobik
    Frequent Contributor

    1. Make sure that file "C:\Selenium\workspace\PncPortal\bin\pncportalpack\PncPortalReg.class" exists.

    2. I guess last path in your classpath should be "C:\Selenium\workspace\PncPortal\bin\"

    • schowdhury's avatar
      schowdhury
      New Contributor

      Thanks for your feedback. Support team figured it out. It's working now as a suite, not as an individual test. Below is the correct path. Thanks a lot.

      classpath:
      C:\Selenium\selenium-2.44.0\libs\junit-dep-4.11.jar;C:\Selenium\selenium-2.44.0\selenium-java-2.44.0.jar;C:\Selenium\selenium-2.44.0\libs\*;C:\Selenium\workspace\PncPortal\bin

      Test class name:
      pncportalpack.PncPortalReg