Fitnesse For Appian

Hi All ,

 

Can anybody tell me how this function works ?

 

| verify link | LINK_TEXT or LINK_TEXT[INDEX] | URL contains | URL_TEXT |

 

 

Thanks in advance .

  Discussion posts and replies are publicly visible

Parents
  • This works in a similar fashion to all FitNesse verify functions. When used, this function will check that the URL of the provided link contains the provided text. Note that this does not check that it is exclusively that text, only that it contains it.

    For example, the current page would verify with "appian.com" even though that is not the complete URL.
  • Some example form code that could help out, if you placed in an interface rule:

    a!formLayout(
    firstColumnContents: {
    a!linkField(
    labelPosition: "ADJACENT",
    links: a!safeLink(
    label: "Appian Docs",
    uri: "docs.appian.com/.../"
    )
    )
    },
    buttons: a!buttonLayout(
    primaryButtons: a!buttonWidgetSubmit(
    label: "Submit"
    )
    )
    )

    Then if you tested via setting up some way to reach the above interface through an automated Fitnesse test, you could test it like so:
    | verify link | Appian Docs | URL contains | appian.com |

    This would pass in Fitnesse. The following would NOT pass as it checks the text in the link, instead of the URL:
    | verify link | Appian Docs | URL contains | Appian Docs |
Reply
  • Some example form code that could help out, if you placed in an interface rule:

    a!formLayout(
    firstColumnContents: {
    a!linkField(
    labelPosition: "ADJACENT",
    links: a!safeLink(
    label: "Appian Docs",
    uri: "docs.appian.com/.../"
    )
    )
    },
    buttons: a!buttonLayout(
    primaryButtons: a!buttonWidgetSubmit(
    label: "Submit"
    )
    )
    )

    Then if you tested via setting up some way to reach the above interface through an automated Fitnesse test, you could test it like so:
    | verify link | Appian Docs | URL contains | appian.com |

    This would pass in Fitnesse. The following would NOT pass as it checks the text in the link, instead of the URL:
    | verify link | Appian Docs | URL contains | Appian Docs |
Children