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
  • Hi EmanuelWalker,

    I would like to suggest few things here on deciding index values for field/labels/titles/sections/grids.

    1) We have to first segregate the fields in the form by their field types like text, picker, drop down, checkbox, document upload fields. Because script for document upload, checkbox, and other types will differ.
    a. | populate field | FIELD_LABEL or [INDEX] or FIELD_LABEL[INDEX] | with | VALUE(S) | -> To populate text, picker, drop down, checkbox fields(By using this script we can populate these fields by deciding index values one after the other).
    b. | click on checkbox option | CHECKBOX_OPTION or CHECKBOX_OPTION[INDEX] | -> To click on checkbox options(By using this script we can click on checkboxes by giving index values for the number of checkboxes one after the other to which that are present in the form).
    c. | populate | FIELD_TYPE | field | [FIELD_INDEX] | with | VALUE(S) | -> To upload a document to the field( By using this script we can upload document to the field by giving index values for the number of document upload fields one after the other to which that are present in the form).

    For example, let's say there are 3 checkbox fields in the form and 2 document upload fields. In that case, we do not need to consider both the type fields together to decide index values instead you can separate index values for each type fields like for first checkbox field in the form, we can use index one then for the next check box in the form we can use 2 as the index and so on(by using above mentioned script(b)). Same we can do for document upload and other fields too.

    2) We have to make sure that there are no duplicate field names in the form. If we have duplicate field names in the form. In that case, we have to give index like for the first field in the form we have to give index one along with the field name and for the second field which has same field name we have to give index as two along with the field name. The same thing applies to sections, grids, and titles as well.

    3) For grids and sections, we have to decide index values based on the location of that particular grid/ section in the form.
    For example, if we have 2 grids in the form, we have to give index as one for the first grid in the form and 2 for the second grid(Same with sections too).
Reply
  • Hi EmanuelWalker,

    I would like to suggest few things here on deciding index values for field/labels/titles/sections/grids.

    1) We have to first segregate the fields in the form by their field types like text, picker, drop down, checkbox, document upload fields. Because script for document upload, checkbox, and other types will differ.
    a. | populate field | FIELD_LABEL or [INDEX] or FIELD_LABEL[INDEX] | with | VALUE(S) | -> To populate text, picker, drop down, checkbox fields(By using this script we can populate these fields by deciding index values one after the other).
    b. | click on checkbox option | CHECKBOX_OPTION or CHECKBOX_OPTION[INDEX] | -> To click on checkbox options(By using this script we can click on checkboxes by giving index values for the number of checkboxes one after the other to which that are present in the form).
    c. | populate | FIELD_TYPE | field | [FIELD_INDEX] | with | VALUE(S) | -> To upload a document to the field( By using this script we can upload document to the field by giving index values for the number of document upload fields one after the other to which that are present in the form).

    For example, let's say there are 3 checkbox fields in the form and 2 document upload fields. In that case, we do not need to consider both the type fields together to decide index values instead you can separate index values for each type fields like for first checkbox field in the form, we can use index one then for the next check box in the form we can use 2 as the index and so on(by using above mentioned script(b)). Same we can do for document upload and other fields too.

    2) We have to make sure that there are no duplicate field names in the form. If we have duplicate field names in the form. In that case, we have to give index like for the first field in the form we have to give index one along with the field name and for the second field which has same field name we have to give index as two along with the field name. The same thing applies to sections, grids, and titles as well.

    3) For grids and sections, we have to decide index values based on the location of that particular grid/ section in the form.
    For example, if we have 2 grids in the form, we have to give index as one for the first grid in the form and 2 for the second grid(Same with sections too).
Children
No Data