《自动化测试所面临的挑战及其解决方案》由会员分享,可在线阅读,更多相关《自动化测试所面临的挑战及其解决方案(30页珍藏版)》请在金锄头文库上搜索。
1、From Requirements to Test Results UsingAutomationDesk in a seamless wayChristine Haertl, PMHolger Krumm, PMMarch, 22nd20072Test-Automation Reference ProcessTest projectmanagementCore Test-Automation ProcessesDefectmanagementVersion & configurationmanagementReportingTest developmentTest planning and
2、executionTest resultsTest automationlibrariesExternal ProcessesTest specificationRequirementsmanagement3Test-Automation Reference ProcessTest projectmanagementCore Test-Automation ProcessesDefectmanagementVersion & configurationmanagementReportingTest developmentTest planning and executionTest resul
3、tsTest automationlibrariesExternal ProcessesTest specificationRequirementsmanagement4Unlock pressedThe doors are unlockedExample: Remote control5Requirements and TestsDoes a test exist for each requirement?How many requirements are tested successfully?Requirements EngineerTest DeveloperWherefrom do
4、I get the test cases?Where can I place the results?6Connecting Requirements & TestsRequirements in DOORSTest specification in DOORSTest implementation in AutomationDeskAutomationDesk DOORSConnect & Sync Module Consistency between test specification and test implementation structure parameters test r
5、esults Triggering of test execution7Test Specification in DOORS - ExampleExample: Test Cases for the remote controlThe section “TestSteps” contains the steps to stimulate the system under test and the expected results8Export Data from DOORS to the Connect & Sync Serverdrag & drop9Export Data from DO
6、ORS to the Connect & Sync ServerContent of the Connect & Sync ServerThe DOORS project10Test-Automation Reference ProcessTest projectmanagementCore Test-Automation ProcessesDefectmanagementVersion & configurationmanagementReportingTest developmentTest planning and executionTest resultsTest automation
7、librariesExternal ProcessesTest specificationRequirementsmanagement11AutomationDesk An empty project12Import Data from Connect & Sync ServerContent of the Connect & Sync ServerThe AutomationDeskproject13Test Specification Structure in Test ImplementationStructure and parameters of the test specifica
8、tioncreated in DOORS14Same Structure: Test Specification and Test ImplementationTest specification (e.g. DOORS)Test implementation in AutomationDeskTest: Unlock a carTest: Unlock a carA rich text element containing the test stepsTest Steps from the test specificationTest Steps from the test specific
9、ationRemote unlock commandRemote unlock command15Test-Automation Reference ProcessTest projectmanagementCore Test-Automation ProcessesDefectmanagementVersion & configurationmanagementReportingTest developmentTest planning and executionTest resultsTest automationlibrariesExternal ProcessesTest specif
10、icationRequirementsmanagement16Best practice: Creating Custom BlocksCustom Block conform to the Test SpecificationTest Steps from the test specificationImplementation of the Test Steps17Custom Block conform to the Test SpecificationAlternative Example: Test specification in Excel Test specification
11、in Excel18Test-Automation Reference ProcessTest projectmanagementCore Test-Automation ProcessesDefectmanagementVersion & configurationmanagementReportingTest developmentTest planning and executionTest resultsTest automationlibrariesExternal ProcessesTest specificationRequirementsmanagement19Test Dev
12、elopment using the Test FrameworkTestTest Initialization Test Steps and EvaluationTest Clean upTest Steps from the test specificationTest ImplementationImplementation of one Test Step20Test-Automation Reference ProcessTest projectmanagementCore Test-Automation ProcessesDefectmanagementVersion & conf
13、igurationmanagementReportingTest developmentTest planning and executionTest resultsTest automationlibrariesExternal ProcessesTest specificationRequirementsmanagement21Executing Tests in AutomationDeskE.g. Executing a selected Test Sequence Select a sequence, a folder or the whole project Execute tes
14、ts using the context menu Define settings for Result and Report generationCreating a report Creating a result Level of detail for result and report22Running Overnight Tests using Batch Scripts Remote control of AutomationDesk Project Manager via COM / DCOM Language-independent interface Use from Pyt
15、hon, Visual Basic, C+, Detailed API documentationserver = win32com.client.Dispatch(ADAutomationServer.TAM.1)ProjObj = server.Projects.Import(ReportLibraryDemo.zip ,1)ResObj = ProjObj.Execute(Result, COM API Test)RepsObj = ResObj.ReportsRepObj = RepsObjRepsObj.Count-1Path = RepObj.Pathwin32api.ShellE
16、xecute(0, open, Path, , , 1)server = win32com.client.Dispatch(ADAutomationServer.TAM.1)ProjObj = server.Projects.Import(ReportLibraryDemo.zip ,1)ResObj = ProjObj.Execute(Result, COM API Test)RepsObj = ResObj.ReportsRepObj = RepsObjRepsObj.Count-1Path = RepObj.Pathwin32api.ShellExecute(0, open, Path, , , 1)Start Automation Server