FitNesse for Appian : Easy way to get index values for fields/labels/titles/Sections/grids

Hi,

Is there an easy way to determine an index value for fields, labels, titles, grids and sections on a form using FitNesse or any other method?

I have a large number of fields on a particular form that I'm working on with the FitNesse Automation tool and need an easy solution for finding the index values without having to randomly enter values until finding the right one. Please let me know if you have a solution. 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    I was facing the same issue. Here is what I did:

    1. Apply a wait for 60 secs on the form.
    2. get value for different index in different variables.

    Example:

    |script|
    |wait for | +60 seconds|
    |$var1= | get field | [1] | value|
    |$var2= | get field | [2] | value|
    |$var3= | get field | [3] | value|
    |$var4= | get field | [4] | value|


    Now when you will execute this script. Your form will wait for 1 min. Meanwhile fill all values with respective field labels.
    Go back and check your executable test case. Index will represent field label.
Reply
  • 0
    Certified Senior Developer
    I was facing the same issue. Here is what I did:

    1. Apply a wait for 60 secs on the form.
    2. get value for different index in different variables.

    Example:

    |script|
    |wait for | +60 seconds|
    |$var1= | get field | [1] | value|
    |$var2= | get field | [2] | value|
    |$var3= | get field | [3] | value|
    |$var4= | get field | [4] | value|


    Now when you will execute this script. Your form will wait for 1 min. Meanwhile fill all values with respective field labels.
    Go back and check your executable test case. Index will represent field label.
Children
No Data