发明名称 Generating test cases for functional testing of a software application
摘要 An aspect of the present invention generates test cases for functional testing of a software application. In one embodiment, rules specifying corresponding patterns in a natural language and corresponding templates are maintained. Each pattern contains corresponding variables and words of the natural language together in an ordered sequence. On receiving a design document containing statements in the natural language, a first statement is determined to match a first pattern specified in a first rule. A match is deemed to exist only if the words in the first pattern exist in the first statement in the same corresponding positions of the ordered sequence, and if the first statement also contains values for each of the variables specified in the first pattern. A set of test cases is generated based on a first template specified in the first rule and the values for each of the variables.
申请公布号 US8887135(B2) 申请公布日期 2014.11.11
申请号 US201213434882 申请日期 2012.03.30
申请人 NIIT Technologies Ltd 发明人 Banerjee Udayan;Narasimhan Eswaran
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人 Thappeta Narendra Reddy
主权项 1. A method of generating test cases for functional testing of a software application, said method comprising: maintaining a plurality of rules, each rule specifying a corresponding one of a plurality of patterns in a natural language associated with a corresponding template, wherein each of said plurality of patterns comprises a corresponding set of variables and corresponding words of the natural language together in an ordered sequence, wherein each template indicates a corresponding set of test cases based on the set of variables contained in the pattern associated with the template, each test case being specified in the form of a corresponding set of instructions, each instruction comprising text embedded with at least one of the set of variables contained in the pattern associated with the template; receiving a design document containing a plurality of statements, each statement containing words of said natural language; determining a first statement of said plurality of statements matching a first pattern specified in a first rule of said plurality of rules, wherein a match is deemed to exist if the words in the first pattern exist in the first statement in the same corresponding positions of said ordered sequence, and if said first statement also contains values for each of said corresponding set of variables specified in said first pattern, wherein said first rule specifies that said first pattern is associated with a first template, said first pattern containing a first set of variables, wherein said determining identifies values for each of said first set of variables based on said matching, said first template indicating a first test case containing a first set of instructions embedded with said first set of variables; and generating said first test case indicated by said first template specified in said first rule by substituting said first set of variables embedded in said first set of instructions with the corresponding values identified by said determining.
地址 New Delhi IN
您可能感兴趣的专利