Quality Center -OTA : Create a Test in QC Test Plan
In the previous blog post, we got to know about connecting to Quality Center using vb script /QTP. Now, we will create a test case in QC Test plan. Function Create_Test (QC_TestPlan_Path) Connect_QC( ) ' To check whether QC is connected Set treeMng = GLOBAL_QC_CONNECTION.TreeManager Set DestFolder=treeMng.NodeByPath(GLOBAL_QC_TESTPLAN_TREEPATH) Set TestF=DestFolder.TestFactory Set objTest = testF.AddItem(Null) objTest.Field("TS_USER_01")="xxx" objTest.Field("TS_USER_04")="yyy" objTest.Field("TS_SUBJECT")=QC_TestPlan_Path ' subject objTest.Field("TS_USER_14")="cxxx" objTest.name ="TC_01_XXX" objTest.type ="QUICKTEST_TEST" 'ttype objTest.Field("TS_DESCRIPTION")="This is a sample test" objTest.Post ' By posting the test , a new test will be created 'To update the design steps - we need to check-o...
This comment has been removed by a blog administrator.
ReplyDelete