发明名称 System and method for automated test script generation
摘要 A system and method for automatically generating a test script includes receiving a test case flow that includes steps, nodes, and sub-nodes, wherein each sub-node is associated with a use-case based application programming interface (UC-API), for each sub-node of the test case flow retrieving a template array corresponding to the UC-API associated with the sub-node, generating a test array wherein for each node in a step, generating a node array wherein the elements of each node array includes the sub-node arrays associated with the sub-nodes of the node, for each step, generating a step array wherein the elements of each step array include references to the node arrays of the nodes in the step, and populating the test array wherein each element of the test array includes one of the step arrays.
申请公布号 US9021440(B1) 申请公布日期 2015.04.28
申请号 US201414456996 申请日期 2014.08.11
申请人 PMC-Sierra US, Inc. 发明人 Chandrasekaran Arvind
分类号 G06F9/44;G06F11/36 主分类号 G06F9/44
代理机构 代理人 Haszko Dennis R.
主权项 1. A computer-implemented method of automatically generating test script for testing a target system, the method comprising processor performed steps of: receiving a test case flow that includes one or more steps, each step including one or more nodes, each node including one or more sub-nodes, wherein the steps are to be executed sequentially, the nodes of each step are to be executed in parallel, and the sub-nodes of each node are to be executed sequentially, wherein each sub-node is associated with a use-case based application programming interface (UC-API), and wherein each step, node, and sub-node includes a unique identifier; for each sub-node of the test case flow: retrieving a template array corresponding to the UC-API associated with the sub-node; andreplacing a first placeholder in the template with the unique identifier of the sub-node to create a unique sub-node array; generating a test array utilizing the test case flow, wherein generating comprises: for each node in a step, generating a node array wherein the elements of each node array includes the sub-node arrays associated with the sub-nodes of the node, and wherein the sub-node arrays are sorted according to an order of the sub-nodes in the node of the test case flow; for each step, generating a step array wherein elements of each step array include references to the node arrays of the nodes in the step; populating the test array wherein each element of the test array includes one of the step arrays.
地址 Sunnyvale CA US