If you have the scenario where you have one or more tests in a single execution plan and they test against multiple AUTs, you should structure your testing as follows:
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.xmland configuration_file.xml contains:
<?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