Menu

Feat.Req: Enhance Folder Close Keyword Settin

2008-02-15
2012-11-13
  • László Kovácsik

    In some languages the block end terminators consist of multiple words. Ex. in ADA or RTRT Script END IF, END TEST, END SERVICE are the block terminators. A tipical test script is:

      SERVICE VOTE_2_OF_2_ENUM
        --(( Goal of test case is ....
        TEST VOTE_2_OF_2_ENUM.001
        FAMILY nominal
            ELEMENT
              # Ret_Vote_2_Of_2_Enum := Vote_Tools_Instance.Vote_2_Of_2_Enum ( First_Value, Second_Value, Priority_Value );
            END ELEMENT
        END TEST -- TEST VOTE_2_OF_2_ENUM.001
        --(( Goal of test case is ....
        TEST VOTE_2_OF_2_ENUM.002
        FAMILY nominal
            ELEMENT
              # Ret_Vote_2_Of_2_Enum := Vote_Tools_Instance.Vote_2_Of_2_Enum ( First_Value, Second_Value, Priority_Value );
            END ELEMENT
        END TEST -- TEST VOTE_2_OF_2_ENUM.002
      END SERVICE -- VOTE_2_OF_2_ENUM
     
      -- Start of new service
      SERVICE VOTE_2_OF_3_ENUM
        --(( Goal of test case is ....
        TEST VOTE_2_OF_3_ENUM.001
        FAMILY nominal
            ELEMENT
              # Ret_Vote_2_Of_3_Enum := Vote_Tools_Instance.Vote_2_Of_3_Enum ( First_Value, Second_Value, Third_Value, Priority_Value );
            END ELEMENT
        END TEST -- TEST VOTE_2_OF_3_ENUM.001
        --(( Goal of test case is ....
        TEST VOTE_2_OF_3_ENUM.002
        FAMILY nominal
            ELEMENT
              # Ret_Vote_2_Of_3_Enum := Vote_Tools_Instance.Vote_2_Of_3_Enum ( First_Value, Second_Value, Third_Value, Priority_Value );
            END ELEMENT
        END TEST -- TEST VOTE_2_OF_3_ENUM.002
      END SERVICE -- VOTE_2_OF_3_ENUM

    In this script the blocks are determined wrong. Ex. END ELEMENT means a block end and a next block start together.
    The resolution could be the possibility to define key strings as: "END SERVICE" "END TEST" "END ELEMENT" "END IF" etc.

    laszlo.kovacsik@transport.alstom.com

     
    • Nobody/Anonymous

      As was reported before on one of the forums.