Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Maximo Test Automation Framework

    Posted 03/04/24 11:28 AM

    No longer able to run tests via eclipse.  All was working fine until I had to update the edgedriver and chromedriver (I have used both browsers in the past) and have not been able to get to work since.  Encounter multiple java errors.  I was finally able to get the errors cleared in the individual java files however now getting this latest one when trying to run a test using TestNG.  

    org.testng.TestNGException: 
    The factory method class framework.AutomationBaseTest.framework.AutomationBaseTest() threw an exception
        at org.testng.internal.FactoryMethod.invoke(FactoryMethod.java:103)
        at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:150)
        at org.testng.TestRunner.initMethods(TestRunner.java:424)
        at org.testng.TestRunner.init(TestRunner.java:247)
        at org.testng.TestRunner.init(TestRunner.java:217)
        at org.testng.TestRunner.<init>(TestRunner.java:169)
        at org.testng.remote.support.RemoteTestNG6_9_10$1.newTestRunner(RemoteTestNG6_9_10.java:29)
        at org.testng.remote.support.RemoteTestNG6_9_10$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_9_10.java:65)
        at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:594)
        at org.testng.SuiteRunner.init(SuiteRunner.java:168)
        at org.testng.SuiteRunner.<init>(SuiteRunner.java:117)
        at org.testng.TestNG.createSuiteRunner(TestNG.java:1319)
        at org.testng.TestNG.createSuiteRunners(TestNG.java:1306)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1160)
        at org.testng.TestNG.run(TestNG.java:1064)
        at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
        at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)
        at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)
    Caused by: java.lang.IllegalArgumentException: wrong number of arguments
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.testng.internal.FactoryMethod.invoke(FactoryMethod.java:95)
        ... 17 more
    Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="OracleJava7Fix"

    I have tried updating the framework to version V.3  (as we are on Maximo v7.6.1.1 going to 7.6.1.3) then I have tried multiple versions of Selenium (2.47.1, 3.0 , 3.141.59. and 4.18.1) and different versions of TestNG (6.8, 6.8.5, 6.9.10, 6.11, 6.14.3).  I am not a programmer, I am on the business side and perform Development and Acceptance testing.   I really do not know what versions to use together to make it work.   Eclipse is Version: Neon.3 Release (4.6.3)
    Build id: 20170314-1500.  Any help , guidance or direct contact support would be greatly appreciated.



    ------------------------------
    John Hunt
    ------------------------------


  • 2.  RE: Maximo Test Automation Framework

    Posted 03/05/24 09:36 AM

    John,

    I would recommend you open a support ticket on this.  The Automation testing framework is supported through the IBM Community to a limited extent.  Also @Kristin Fernandes responded to a similar question on the TestNG on this thread,  Maximo Test Automation Framework  so you may get help from her.



    ------------------------------
    Bradley K. Downing , MBA
    Senior Solution Architect
    IBM
    Bakersfield CA
    ------------------------------