Si un ou plusieurs tests figurent dans un plan d'exécution unique et doivent être exécutés dans plusieurs applications sous test, vous devez organiser votre test comme suit :
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.xmlet où configuration_file.xml contient :
<?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