FitNesse Login Test

To All
Script:
! define TEST_SYSTEM {slim}
|Import|
tempo|
|http: //10.0.3.101:XXXX|suite/tempo|

I need help with the above FitNesse login Test.
Error Occurred: java.lang.RuntimeException: "Unable to parse XML from stream."

Thanks,
arthur

OriginalPostID-241910

  Discussion posts and replies are publicly visible

Parents
  • Here is the example for login into site. Try to use this code and modify it according to requirements.

    !***> 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
    !define CURRENTDATE (!today (MM/dd/YYYY))
    ***!
    !*** Initialization
    !| script | com.appiancorp.ps.automatedtest.fixture.SitesFixture |
    | setup selenium web driver with browser | CHROME |
    | set appian url to |http: //10.0.3.101:XXXX/suite |
    | set appian version to | 16.3 |
    | set appian locale to | en_GB |
    | set timeout seconds to | 25 |
    | set screenshot path to | D:/pega |
    | 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 Sites and go to Actions
    !| script |
    | login with username | USERNAME | and password | PASSWORD |
    | navigate to site | drsi | page | my-tasks |
    ***!

    Please let me know if you have any doubt.
Reply
  • Here is the example for login into site. Try to use this code and modify it according to requirements.

    !***> 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
    !define CURRENTDATE (!today (MM/dd/YYYY))
    ***!
    !*** Initialization
    !| script | com.appiancorp.ps.automatedtest.fixture.SitesFixture |
    | setup selenium web driver with browser | CHROME |
    | set appian url to |http: //10.0.3.101:XXXX/suite |
    | set appian version to | 16.3 |
    | set appian locale to | en_GB |
    | set timeout seconds to | 25 |
    | set screenshot path to | D:/pega |
    | 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 Sites and go to Actions
    !| script |
    | login with username | USERNAME | and password | PASSWORD |
    | navigate to site | drsi | page | my-tasks |
    ***!

    Please let me know if you have any doubt.
Children
No Data