如果您在一个执行计划中拥有一个或多个测试并对多个 AUT 进行测试,您应按以下步骤组织您的测试:
cmd
/c start cmd /c D:\sctm\dps\two_app_dps.cmd
"C:\Program Files (x86)\Micro Focus\DevPartner\Analysis\dpanalysis.exe" /config D:\SCTM\DPS\configuration_file.xml且 configuration_file.xml 包含:
<?xml version="1.0" ?> <ProductConfiguration> <RuntimeAnalysis Type="Coverage" MaximumSessionDuration="1000" NoUIMsg="true" /> <Targets RunInParallel="true"> <Process CollectData="true" Spawn="true" NoWaitForCompletion="true" NM_USE_AUTOMATION_INTERFACE="1" > <AnalysisOptions NM_USE_AUTOMATION_INTERFACE="1" NO_MACH5="1" NM_METHOD_GRANULARITY="1" SESSION_DIR="c:\temp" /> <Path>D:\SCTM\DPS\SCTMCodeAnalysisTestApp\SCTMCodeAnalysisTestApp\ SCTMCodeAnalysisTestApp\bin\Debug\SCTMCodeAnalysisTestApp.exe</Path> <Arguments></Arguments> <WorkingDirectory>D:\SCTM\DPS\SCTMCodeAnalysisTestApp\SCTMCodeAnalysisTestApp\ SCTMCodeAnalysisTestApp\bin\Debug</WorkingDirectory> </Process> <Process CollectData="true" Spawn="true" NoWaitForCompletion="true" > <AnalysisOptions NM_USE_AUTOMATION_INTERFACE="1" NO_MACH5="1" NM_METHOD_GRANULARITY="1" SESSION_DIR="c:\temp" /> <Path>D:\SourceCode\SVNQAD\Development\Development\SOURCECODE\ QADSCTMMigration\bin\QADSCTMMigration.exe</Path> <Arguments></Arguments> <WorkingDirectory>D:\SourceCode\SVNQAD\Development\Development\ SOURCECODE\QADSCTMMigration\bin</WorkingDirectory> </Process> </Targets> </ProductConfiguration>
cmd
/c TASKKILL /IM application1.exe /IM Application2.exe /F