Support Statement: Running and Comparing results for a test code
Associate a batch command script to your upgrade task and edit the UserCmd.cmd
file to run and compare results. For example
::---------------------------------------------------------------- :POST-MAKE ::---------------------------------------------------------------- echo USER COMMAND: %1 [%JobId%] :: Enter post-build processing here "%NetProjFolder%\bin\%SrcName%.exe" echo file-report layout:side-by-side ^& > diff.bc echo options:display-mismatches,line-numbers ^& >> diff.bc echo output-to:%%3 %%1 %%2 >> diff.bc "c:\Program Files (x86)\Beyond Compare 3\BComp.exe" @"diff.bc" "%SrcFolder%\OverloadArg.log" "%NetProjFolder%\bin\OverloadArg.log" %SrcName%_test.log type %SrcName%_test.log
The results might look something like this (showing there is still quite difference in the baseline upgrade result and the original result...)
USER COMMAND: POST-MAKE [OverloadArg-OverloadArg-2A-csh] Unhandled Exception: System.MissingMemberException: Public member 'Path' on type 'FileInfo' not found. at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) at Microsoft.VisualBasic.Interaction.CallByName(Object ObjectRef, String ProcName, CallType UseCallType, Object[] Args) at OverloadArg.modOverloadArg.test2(Object obj) in c:\gmSpec\Lang\OverloadArg\proj\deploy\OverloadArg_2A_csh\modOverloadArg.cs:line 55 at OverloadArg.modOverloadArg.test1() in c:\gmSpec\Lang\OverloadArg\proj\deploy\OverloadArg_2A_csh\modOverloadArg.cs:line 77 at OverloadArg.modOverloadArg.run() in c:\gmSpec\Lang\OverloadArg\proj\deploy\OverloadArg_2A_csh\modOverloadArg.cs:line 40 at OverloadArg.modOverloadArg.Main() in c:\gmSpec\Lang\OverloadArg\proj\deploy\OverloadArg_2A_csh\modOverloadArg.cs:line 26 GreatMigrations LLC Regression Testing Produced: 11/24/2015 4:05:48 PM Mode: Differences Left file: C:\gmSpec\Lang\OverloadArg\src\OverloadArg.log Right file: C:\gmSpec\Lang\OverloadArg\proj\deploy\OverloadArg_2A_csh\bin\OverloadArg.log 3 File Path=C:\promula\CLEAN.BAT <> 3 FileInfo Path=C:\promula\clean.bat ------------------------------------------------------------------------ 4 Folder Path=C:\promula <> 4 DirectoryInfo Path=C:\promula ------------------------------------------------------------------------ 5 Drive Path=C: <> 5 DriveInfo Path=C:\ ------------------------------------------------------------------------ 6 Class1 Path=MyPath <> 6 Class1 Path=NOT APPLICABLE ------------------------------------------------------------------------ 7 test2: File Path=C:\promula\CLEAN.BAT +- ------------------------------------------------------------------------ 8 test2: Folder Path=C:\promula +- ------------------------------------------------------------------------ 9 test2: Drive Path=C: +- ------------------------------------------------------------------------ 10 test2: Class1 Path=MyPath +- ------------------------------------------------------------------------ 11 FOUND: File <> 7 FOUND: FileInfo ------------------------------------------------------------------------ 12 FOUND: Folder +- ------------------------------------------------------------------------ 13 FOUND: Drive <> 8 FOUND: DirectoryInfo ------------------------------------------------------------------------ 14 FOUND: Class1 +- ------------------------------------------------------------------------ 15 FOUND: String +- ------------------------------------------------------------------------ 16 FOUND: Integer <> 9 FOUND: DriveInfo ------------------------------------------------------------------------ 17 NOT FOUND +- ------------------------------------------------------------------------ 18 ending OverloadArg +- ------------------------------------------------------------------------