Fitnesse

Hi,

I am first time user of Fitnesse automation tool. I created a static Page->Test Suite page->test page and wrote all my codes in test page to keep it simple. when I try to run it it is giving me an error cannot invoke constructor for
com.appiancorp.ps.automatedtest.fixture.TempoFixture. Also it is giving error for rest of the keywords used in script. Please help on an urgent basis.

Thanks

OriginalPostID-259796

  Discussion posts and replies are publicly visible

  • 0
    Certified Lead Developer
    @agamb,

    Please make sure you modified the custom.properties as per your Fitnesse home directory. Same you can find under Fitnesses home page - > Examples - > TestExample
    (localhost:8980/FitNesseForAppian.Examples.TestExample)
  • Could you please paste the error here?
  • I have fitness code to login into forum in Firefox. I have fitness in my D Drive @D:/FitNesseForAppian-1.4/FitNesseForAppian Change the path and try following code. As Ramanjaneyulu said i remember doing some custom properties first. Please check that and let me know if you need any help.

    !***> FitNesse Configurations
    !define TEST_SYSTEM {slim}
    !path D:/FitNesseForAppian-1.4/FitNesseForAppian/**.jar
    ***!
    !*** Initialization
    !| script | com.appiancorp.ps.automatedtest.fixture.TempoFixture |
    | setup selenium web driver with browser | FIREFOX |
    | set appian url to | https://forum.appian.com/suite |
    | set appian version to | 16.3 |
    | set appian locale to | en_GB |
    | set timeout seconds to | 10 |
    | set screenshot path to | D:/SCREENSHOTS |
    | set take error screenshots to | true |
    | set test variable | DATEXXX | with | ${!today(YYYY-MM-DD)} |
    | set stop on error to | false |
    | set start datetime |
    ***!
    !*** Login to Tempo s
    !| script |
    | login with username | XXXXX | and password | XXXXXX |


    ***!
  • Checked the Custom file configuration and tried the above script after removing few non mandatory lines. Got error " Could not invoke constructor for com.appiancorp.ps.automatedtest.fixture.TempoFixture[0]". I got this same error before also
  • I feel it is not able to get the required jar files to resolve the code instructions
    my Fitneese is downloaded in below path
    C:/Users/NNNNNN/Documents/FitNesseForAppian-1.4/FitNesseForAppian
    Below is my custom config file details:-

    ### FITNESSE ###
    automated.testing.home=C:/Users/NNNNNN/Documents/FitNesseForAppian-1.4/FitNesseForAppian
    FITNESSE_FOR_APPIAN_VERSION=v1.4

    ### CHROME ###
    # Leave blank if installed in default location of: C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
    chrome.browser.home=C:/Program Files/Google/Chrome/Application/chrome.exe
    # Leave blank if using the Windows driver included in TESTING_HOME/lib/drivers/chromedriver.exe
    chrome.driver.home=C:/Users/NNNNNN/Documents/Fitnesse/FitNesseForAppian-1.4/FitNesseForAppian/lib/drivers/chromedriver.exe
  • 0
    Certified Lead Developer
    @agamb
    The configuration seems to be correct..
    Try with FITNESSE_FOR_APPIAN_VERSION=v1.3.1 in custom.properties
    If it doesn't resolves the issue, Can you please attach the test page code here?
  • I tried with version V1.3.1... same error there as well. Below is the test page code:-

    !***> FitNesse Configurations
    !define TEST_SYSTEM {slim}
    !define COMMAND_PATTERN {java -Dlog4j.configuration=file:///${automated.testing.home}/log4j.properties -cp %p %m}
    !path ${automated.testing.home}/**.jar
    ***!

    !*** Initialization
    This table initializes the fixture class and sets the environment defaults

    !| script |com.appiancorp.ps.automatedtest.fixture.TempoFixture |
    |set appian url to |bpms-sit.bendigobank.com.au/.../ |
    |set appian version to |16.3 |
    |set appian locale to |en_GB |
    |set take error screenshots to|True |
    |set screenshot path to |${automated.testing.home}/FitNesseRoot/Sample-TestSuites/CardCancellationApplications/SimpleScenario/screenshots/|
    ***!

    !*** Set Suite Variables
    This table creates a variable which will be available in all tests by using tv!titleThis table creates a variable which will be available in all tests by using tv!title
    |script |
    |set test variable|Cardholder_Name |with|xx |
    |set test variable|Card_Number |with|nn|
    |set test variable|Customer_Number |with|nnn |
    |set test variable|Reason |with|xx |
    |set test variable|Delivery_Option |with|xxnn |
    |set test variable|Delivery_Option_Code|with|nn |
    ***!

    !*** Initialization
    This table opens a new instance of the Firefox browser, navigates to Appian, and logs in
    !| script |
    |setup with browser |CHROME |
    |login with username|admxxxx|
    |take screenshot |Login |
    ***!

  • 0
    Certified Lead Developer
    @agamb

    I am using below code...it is working for me

    !***> FitNesse Configurations
    !define TEST_SYSTEM {slim}
    !define COMMAND_PATTERN {java -Dlog4j.configuration=file:///${automated.testing.home}/log4j.properties -cp %p %m}
    !path ${automated.testing.home}/**.jar
    ***!
    !*** Initialization
    !| script |com.appiancorp.ps.automatedtest.fixture.TempoFixture |
    |setup with browser|FIREFOX |
    |set appian url to |http://<serverip>:8080/suite/ |
    |set appian version to |16.3 |
    |set appian locale to |en_US |
    ***!
    !*** Login to Tempo
    !| script           |
    |login with username|<your user name to login>                    |

    ***!

    and make sure you have configured your username and pass in users.properties
  • Hi Agamb,

    You might want to try downloading the latest version of the Chrome WebDriver: chromedriver.storage.googleapis.com/index.html

    I'm not sure if this is what is causing your problem, but I've corrected similar issues before with this driver update.

    Thanks,
    Lucas
  • Hi,
    I am also getting the same error. Can you please let me know how the issue was resolved for you?