Questions regarding Appian FitNesse tool


#AppianFitNesse

I am working on Appian FitNesse and there are some bottlenecks which I would like share. If anybody has encountered the same limitations in Appian FitNesse and have overcome them, please suggest those solutions.

1.          Looping in Appian FitNesse
          
          There is a scenario where I want to run a Test Page multiple times by getting the test data from CSV or Database dynamically.
          Is there any looping method to achieve this.

2.          Conditional Statement in Appian FitNesse

          I have a requirement where if a condition is true, I want to execute some statements, else execute some other statements.
          In other words does Appian FitNesse has If Else statement in it.
          Ex: if(condition 1)
                    {
                              Statement 1
                    }
                    else
                    {
                              Statement 2
                    }
          I know there is a "check" keyword/method in Appian FitNesse but it doesn't suffice my above requirement. Please suggest if there is some method which I can use with "check" to achieve...

OriginalPostID-224959

OriginalPostID-224959

  Discussion posts and replies are publicly visible

Parents
  • @Sidhantb,AFAIK we dont have looping and conditional statements in FitNesse.
    may be we can accomplish this as a work arround.
    Build a scenario that will populates the Input values e.g.

    |scenario |populate Test Form |text|int|decimal|datetime|datetime|
    |populate field|Title |with |@text |
    |populate field|Quantity |with |@int |
    |populate field|Price |with |@decimal |
    |populate field|Start Date |with |@date |
    |populate field|End Date\ t |with |@date\ t|

    Build a scenario that will Verifies the Input values e.g.
    |scenario |Verify Test Form |text|int|decimal|datetime|datetime|
    |verify field|Title |with |@text |
    |verify field|Quantity |with |@int |
    |verify field|Price |with |@decimal |
    |verify field|Start Date |with |@date |
    |verify field|End Date\ t |with |@date\ t|

    The below Script acts as a test Data for the Scenario that Populates fields.
    |scrip t|
    |populate Test Form|BeanBags|10|150.3|2016-12-12 |2016-12-20|

    Now add a Verify Script

    |scrip t|
    |Verify Test Form|BeanBags|10|150.3|2016-12-12 |2016-12-20|

    Now Add the above Two scripts repeatedly changing the Test Data from the Scripts itself to acheive looping functionality.

    Note: This may not be the good idea for large chunks of Test Data, still can be used in conjunction with Boundary Value Analysis technique to limit the Test Data.

    let me know your views on this
Reply
  • @Sidhantb,AFAIK we dont have looping and conditional statements in FitNesse.
    may be we can accomplish this as a work arround.
    Build a scenario that will populates the Input values e.g.

    |scenario |populate Test Form |text|int|decimal|datetime|datetime|
    |populate field|Title |with |@text |
    |populate field|Quantity |with |@int |
    |populate field|Price |with |@decimal |
    |populate field|Start Date |with |@date |
    |populate field|End Date\ t |with |@date\ t|

    Build a scenario that will Verifies the Input values e.g.
    |scenario |Verify Test Form |text|int|decimal|datetime|datetime|
    |verify field|Title |with |@text |
    |verify field|Quantity |with |@int |
    |verify field|Price |with |@decimal |
    |verify field|Start Date |with |@date |
    |verify field|End Date\ t |with |@date\ t|

    The below Script acts as a test Data for the Scenario that Populates fields.
    |scrip t|
    |populate Test Form|BeanBags|10|150.3|2016-12-12 |2016-12-20|

    Now add a Verify Script

    |scrip t|
    |Verify Test Form|BeanBags|10|150.3|2016-12-12 |2016-12-20|

    Now Add the above Two scripts repeatedly changing the Test Data from the Scripts itself to acheive looping functionality.

    Note: This may not be the good idea for large chunks of Test Data, still can be used in conjunction with Boundary Value Analysis technique to limit the Test Data.

    let me know your views on this
Children
No Data