├── .gitignore ├── Binaries .NET 3.5 ├── Abstracta.FiddlerSessionComparer_3.5.dll ├── Abstracta.GXtest.Utils.dll ├── Abstracta.Generator_3.5.dll ├── Abstracta.ScriptGeneratorGUI_3.5.exe ├── FiddlerCore.dll ├── Ionic.Zip.dll ├── Newtonsoft.Json.dll └── Simplicit.Net.Lzo.dll ├── Binaries .NET 4.5 ├── Abstracta.FiddlerSessionComparer_4.5.dll ├── Abstracta.GXtest.Utils.dll ├── Abstracta.Generator_4.5.dll ├── Abstracta.ScriptGeneratorCLI_4.5.exe ├── Abstracta.ScriptGeneratorGUI_4.5.exe ├── FiddlerCore.dll ├── Ionic.Zip.dll ├── ManyConsole.dll ├── NDesk.Options.dll ├── Newtonsoft.Json.dll └── Simplicit.Net.Lzo.dll ├── Examples └── duckduckgo │ ├── AutoGeneratedScriptName.jmx │ ├── ProcessingResult.txt │ └── sessions.saz ├── FiddlerSessionComparerCLI_3.5 ├── FiddlerSessionComparerCLI_3.5.csproj ├── Properties │ └── AssemblyInfo.cs └── app.config ├── FiddlerSessionComparerCLI_4.5 ├── FiddlerSessionComparerCLI_4.5.csproj ├── Program.cs ├── Properties │ └── AssemblyInfo.cs └── app.config ├── FiddlerSessionComparerGUI_4.5 ├── App.config ├── App.xaml ├── App.xaml.cs ├── FiddlerSessionComparerGUI_4.5.csproj ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── Readme.txt ├── FiddlerSessionComparerTests_4.5 ├── FiddlerSessionComparerTests_4.5.csproj ├── JSONParse.cs ├── Properties │ └── AssemblyInfo.cs └── XMLParse.cs ├── FiddlerSessionComparer_3.5 ├── Content │ └── Tuple.cs ├── FiddlerSessionComparer_3.5.csproj ├── Properties │ └── AssemblyInfo.cs ├── Utils │ └── EmptyFile.txt └── app.config ├── FiddlerSessionComparer_4.5 ├── ComparerResultType.cs ├── Content │ ├── ContentFactory.cs │ └── XmlContentType.cs ├── EqualsResult.cs ├── FiddlerSessionComparer.cs ├── FiddlerSessionComparer_4.5.csproj ├── Page.cs ├── Parameter.cs ├── ParameterDefinition.cs ├── Properties │ └── AssemblyInfo.cs ├── RegExpExtractor.cs ├── Replacement.cs ├── Utils │ ├── FiddlerSessionExtension.cs │ ├── Logger.cs │ ├── NameFactory.cs │ ├── SAZ-DOTNETZIP.cs │ ├── SessionUtils.cs │ └── StringUtils.cs └── app.config ├── GeneratorFramework_3.5 ├── AbstractGenerator │ ├── Extensions │ │ └── EmptyFile.txt │ ├── ParameterExtractor │ │ └── EmptyFile.txt │ ├── Validations │ │ └── EmptyFile.txt │ ├── Wrapper │ │ └── EmptyFile.txt │ └── Wrappers │ │ └── EmptyFile.txt ├── Constants │ └── EmptyFile.txt ├── GeneratorFramework_3.5.csproj ├── JMeterGenerator │ ├── AuxiliarClasses │ │ └── EmptyFile.txt │ ├── ParameterExtractor │ │ └── EmptyFile.txt │ └── Validations │ │ └── EmptyFile.txt ├── OSTAGenerator │ ├── AuxiliarClasses │ │ ├── SCLSnippets │ │ │ └── EmptyFile.txt │ │ └── Scripts │ │ │ └── EmptyFile.txt │ ├── ParameterExtractor │ │ └── EmptyFile.txt │ └── Validations │ │ └── EmptyFile.txt ├── Properties │ └── AssemblyInfo.cs └── TestingGenerator │ └── ParameterExtractor │ └── EmptyFile.txt ├── GeneratorFramework_4.5 ├── AbstractGenerator │ ├── AbstractFollowRedirect.cs │ ├── AbstractGenerator.cs │ ├── AbstractPageRequest.cs │ ├── AbstractStep.cs │ ├── Command.cs │ ├── DataPool.cs │ ├── HTTPRequest.cs │ ├── ParameterExtractor │ │ ├── AbstractParameterExtractor.cs │ │ ├── AbstractRegExParameter.cs │ │ └── NameGenerator.cs │ ├── ParametersType.cs │ ├── Validations │ │ ├── AbstractValidation.cs │ │ ├── AppearTextValidation.cs │ │ ├── CheckMainObjectValidation.cs │ │ ├── DefaultValidation.cs │ │ └── ResponseCodeValidation.cs │ └── Wrappers │ │ ├── FiddlerSessionsWrapper.cs │ │ └── GXTestScriptWrapper.cs ├── Constants │ └── HTTPConstants.cs ├── GeneratorFramework_4.5.csproj ├── JMeterGenerator │ ├── AuxiliarClasses │ │ ├── CommonArgumentTypes.cs │ │ ├── CommonCollectorTypes.cs │ │ ├── JMeterWrapper.cs │ │ └── ThinktimeType.cs │ ├── JMeterGenerator.cs │ ├── PageRequest.cs │ ├── ParameterExtractor │ │ ├── JMeterConstant.cs │ │ └── JMeterRegExParameter.cs │ ├── Step.cs │ └── Validations │ │ ├── AppearTextValidation.cs │ │ ├── CheckMainObjectValidation.cs │ │ ├── DefaultValidation.cs │ │ ├── ResponseCodeValidation.cs │ │ └── ValidationHelper.cs ├── Logger.cs ├── OSTAGenerator │ ├── AuxiliarClasses │ │ ├── DataFile.cs │ │ ├── DataFileColumn.cs │ │ ├── OpenSTAUtils.cs │ │ ├── ParametrizedValue.cs │ │ ├── Repository.cs │ │ ├── SCLSnippets │ │ │ ├── AppearTextSection.cs │ │ │ ├── BuildBlobFromBlobSection.cs │ │ │ ├── BuildBlobFromUserSection.cs │ │ │ ├── CodeSection.cs │ │ │ ├── Comment.cs │ │ │ ├── ConstantDeclarationSection.cs │ │ │ ├── EndTimer.cs │ │ │ ├── EnviromentSection.cs │ │ │ ├── HeaderSection.cs │ │ │ ├── ISCLSections.cs │ │ │ ├── IncludeSecondaryScript.cs │ │ │ ├── IncludedScriptSection.cs │ │ │ ├── LoadCookieSection.cs │ │ │ ├── LogResponsesSection.cs │ │ │ ├── PlainCode.cs │ │ │ ├── RequestSection.cs │ │ │ ├── StartTimer.cs │ │ │ ├── ThinkTimeSection.cs │ │ │ └── VariableDeclaration.cs │ │ ├── Scripts │ │ │ ├── IScript.cs │ │ │ ├── IncludedScriptSCL.cs │ │ │ ├── MainScriptSCL.cs │ │ │ ├── ScriptInc.cs │ │ │ └── ScriptSCL.cs │ │ ├── SessionUtils.cs │ │ ├── Variable.cs │ │ └── VariablesScopes.cs │ ├── OpenSTAGenerator.cs │ ├── PageRequest.cs │ ├── ParameterExtractor │ │ └── OSTARegExParameter.cs │ ├── Step.cs │ └── Validations │ │ ├── AppearTextValidation.cs │ │ ├── CheckMainObjectValidation.cs │ │ ├── DefaultValidation.cs │ │ └── ResponseCodeValidation.cs ├── Properties │ └── AssemblyInfo.cs ├── Readme.txt ├── ScriptGenerator.cs └── TestingGenerator │ ├── PageRequest.cs │ ├── ParameterExtractor │ └── TestRegExParameter.cs │ ├── Step.cs │ └── TestingGenerator.cs ├── Generators.sln ├── README.md ├── ScriptGeneratorCLI_4.5 ├── App.config ├── Command.cs ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── ScriptGeneratorCLI_4.5.csproj └── packages.config ├── ScriptGeneratorGUI_3.5 ├── App.xaml ├── App.xaml.cs ├── MainWindow.xaml ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── ScriptGeneratorGUI_3.5.csproj ├── ScriptGeneratorGUI_4.5 ├── App.xaml ├── App.xaml.cs ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── ScriptGeneratorGUI_4.5.csproj └── app.config ├── clear.bat ├── copyLastVersion.bat └── dependencies ├── .NET_3.5 ├── FiddlerCore.dll └── Newtonsoft.Json.dll ├── .NET_4.5 ├── FiddlerCore.dll └── Newtonsoft.Json.dll ├── Abstracta.GXtest.Utils.dll ├── ICSharpCode.SharpZipLib.dll ├── Ionic.Zip.dll └── Simplicit.Net.Lzo.dll /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.sln.docstates 8 | 9 | # Build results 10 | [Dd]ebug/ 11 | [Dd]ebugPublic/ 12 | [Rr]elease/ 13 | x64/ 14 | build/ 15 | bld/ 16 | [Bb]in/ 17 | [Oo]bj/ 18 | 19 | # MSTest test Results 20 | [Tt]est[Rr]esult*/ 21 | [Bb]uild[Ll]og.* 22 | 23 | #NUNIT 24 | *.VisualState.xml 25 | TestResult.xml 26 | 27 | # Build Results of an ATL Project 28 | [Dd]ebugPS/ 29 | [Rr]eleasePS/ 30 | dlldata.c 31 | 32 | *_i.c 33 | *_p.c 34 | *_i.h 35 | *.ilk 36 | *.meta 37 | *.obj 38 | *.pch 39 | *.pdb 40 | *.pgc 41 | *.pgd 42 | *.rsp 43 | *.sbr 44 | *.tlb 45 | *.tli 46 | *.tlh 47 | *.tmp 48 | *.tmp_proj 49 | *.log 50 | *.vspscc 51 | *.vssscc 52 | .builds 53 | *.pidb 54 | *.svclog 55 | *.scc 56 | 57 | # Chutzpah Test files 58 | _Chutzpah* 59 | 60 | # Visual C++ cache files 61 | ipch/ 62 | *.aps 63 | *.ncb 64 | *.opensdf 65 | *.sdf 66 | *.cachefile 67 | 68 | # Visual Studio profiler 69 | *.psess 70 | *.vsp 71 | *.vspx 72 | 73 | # TFS 2012 Local Workspace 74 | $tf/ 75 | 76 | # Guidance Automation Toolkit 77 | *.gpState 78 | 79 | # ReSharper is a .NET coding add-in 80 | _ReSharper*/ 81 | *.[Rr]e[Ss]harper 82 | *.DotSettings.user 83 | 84 | # JustCode is a .NET coding addin-in 85 | .JustCode 86 | 87 | # TeamCity is a build add-in 88 | _TeamCity* 89 | 90 | # DotCover is a Code Coverage Tool 91 | *.dotCover 92 | 93 | # NCrunch 94 | *.ncrunch* 95 | _NCrunch_* 96 | .*crunch*.local.xml 97 | 98 | # MightyMoose 99 | *.mm.* 100 | AutoTest.Net/ 101 | 102 | # Web workbench (sass) 103 | .sass-cache/ 104 | 105 | # Installshield output folder 106 | [Ee]xpress/ 107 | 108 | # DocProject is a documentation generator add-in 109 | DocProject/buildhelp/ 110 | DocProject/Help/*.HxT 111 | DocProject/Help/*.HxC 112 | DocProject/Help/*.hhc 113 | DocProject/Help/*.hhk 114 | DocProject/Help/*.hhp 115 | DocProject/Help/Html2 116 | DocProject/Help/html 117 | 118 | # Click-Once directory 119 | publish/ 120 | 121 | # Publish Web Output 122 | *.[Pp]ublish.xml 123 | *.azurePubxml 124 | 125 | # NuGet Packages Directory 126 | packages/ 127 | ## TODO: If the tool you use requires repositories.config uncomment the next line 128 | #!packages/repositories.config 129 | 130 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets 131 | # This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented) 132 | !packages/build/ 133 | 134 | # Windows Azure Build Output 135 | csx/ 136 | *.build.csdef 137 | 138 | # Windows Store app package directory 139 | AppPackages/ 140 | 141 | # Others 142 | sql/ 143 | *.Cache 144 | ClientBin/ 145 | [Ss]tyle[Cc]op.* 146 | ~$* 147 | *~ 148 | *.dbmdl 149 | *.dbproj.schemaview 150 | *.pfx 151 | *.publishsettings 152 | node_modules/ 153 | 154 | # RIA/Silverlight projects 155 | Generated_Code/ 156 | 157 | # Backup & report files from converting an old project file to a newer 158 | # Visual Studio version. Backup files are not needed, because we have git ;-) 159 | _UpgradeReport_Files/ 160 | Backup*/ 161 | UpgradeLog*.XML 162 | UpgradeLog*.htm 163 | 164 | # SQL Server files 165 | *.mdf 166 | *.ldf 167 | 168 | # Business Intelligence projects 169 | *.rdl.data 170 | *.bim.layout 171 | *.bim_*.settings 172 | 173 | # Microsoft Fakes 174 | FakesAssemblies/ 175 | -------------------------------------------------------------------------------- /Binaries .NET 3.5/Abstracta.FiddlerSessionComparer_3.5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 3.5/Abstracta.FiddlerSessionComparer_3.5.dll -------------------------------------------------------------------------------- /Binaries .NET 3.5/Abstracta.GXtest.Utils.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 3.5/Abstracta.GXtest.Utils.dll -------------------------------------------------------------------------------- /Binaries .NET 3.5/Abstracta.Generator_3.5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 3.5/Abstracta.Generator_3.5.dll -------------------------------------------------------------------------------- /Binaries .NET 3.5/Abstracta.ScriptGeneratorGUI_3.5.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 3.5/Abstracta.ScriptGeneratorGUI_3.5.exe -------------------------------------------------------------------------------- /Binaries .NET 3.5/FiddlerCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 3.5/FiddlerCore.dll -------------------------------------------------------------------------------- /Binaries .NET 3.5/Ionic.Zip.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 3.5/Ionic.Zip.dll -------------------------------------------------------------------------------- /Binaries .NET 3.5/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 3.5/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /Binaries .NET 3.5/Simplicit.Net.Lzo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 3.5/Simplicit.Net.Lzo.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/Abstracta.FiddlerSessionComparer_4.5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/Abstracta.FiddlerSessionComparer_4.5.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/Abstracta.GXtest.Utils.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/Abstracta.GXtest.Utils.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/Abstracta.Generator_4.5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/Abstracta.Generator_4.5.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/Abstracta.ScriptGeneratorCLI_4.5.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/Abstracta.ScriptGeneratorCLI_4.5.exe -------------------------------------------------------------------------------- /Binaries .NET 4.5/Abstracta.ScriptGeneratorGUI_4.5.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/Abstracta.ScriptGeneratorGUI_4.5.exe -------------------------------------------------------------------------------- /Binaries .NET 4.5/FiddlerCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/FiddlerCore.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/Ionic.Zip.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/Ionic.Zip.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/ManyConsole.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/ManyConsole.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/NDesk.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/NDesk.Options.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /Binaries .NET 4.5/Simplicit.Net.Lzo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Binaries .NET 4.5/Simplicit.Net.Lzo.dll -------------------------------------------------------------------------------- /Examples/duckduckgo/sessions.saz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abstracta/ScriptGenerator/43d51c600f7a8cb7a93aea61adc5a840fd06cbd2/Examples/duckduckgo/sessions.saz -------------------------------------------------------------------------------- /FiddlerSessionComparerCLI_3.5/FiddlerSessionComparerCLI_3.5.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {8F0A58A6-733D-4FB6-ABF6-593C2A77EA50} 8 | Exe 9 | Properties 10 | Abstracta.FiddlerSessionComparerCLI 11 | Abstracta.FiddlerSessionComparerCLI_3.5 12 | v3.5 13 | 512 14 | 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | false 26 | 27 | 28 | AnyCPU 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | false 36 | 37 | 38 | 39 | ..\dependencies\.NET_3.5\FiddlerCore.dll 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Program.cs 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | {2fed9ccb-c331-4bab-8b8d-17754dc873b7} 60 | FiddlerSessionComparer_3.5 61 | 62 | 63 | 64 | 71 | -------------------------------------------------------------------------------- /FiddlerSessionComparerCLI_3.5/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("FiddlerSessionComparerCLI_4.5")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("FiddlerSessionComparerCLI_4.5")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("41a781f8-b393-4e45-8c1b-a5df27696218")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /FiddlerSessionComparerCLI_3.5/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /FiddlerSessionComparerCLI_4.5/FiddlerSessionComparerCLI_4.5.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {537D3B50-0FB2-404D-9C0F-05B0FEE63F1A} 8 | Exe 9 | Properties 10 | Abstracta.FiddlerSessionComparerCLI 11 | Abstracta.FiddlerSessionComparerCLI_4.5 12 | v4.5 13 | 512 14 | 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | false 26 | 27 | 28 | AnyCPU 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | false 36 | 37 | 38 | 39 | False 40 | ..\dependencies\.NET_4.5\FiddlerCore.dll 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | {e228fdb9-9b9b-43b5-a9c1-ab11aa47f136} 60 | FiddlerSessionComparer_4.5 61 | 62 | 63 | 64 | 71 | -------------------------------------------------------------------------------- /FiddlerSessionComparerCLI_4.5/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using Abstracta.FiddlerSessionComparer; 4 | using Abstracta.FiddlerSessionComparer.Utils; 5 | 6 | namespace Abstracta.FiddlerSessionComparerCLI 7 | { 8 | public class Program 9 | { 10 | /// 11 | /// This is an example of using the Fiddler session comparer 12 | /// 13 | /// 14 | public static void Main(string[] args) 15 | { 16 | const string fiddlerSessionsFile1 = @""; 17 | const string fiddlerSessionsFile2 = @""; 18 | const string fiddlerSessionsFile3 = @""; 19 | 20 | const string pagesResultFile = @"pruebaAuto-Param.txt"; 21 | const bool isGenexusApp = true; 22 | const bool replaceInBodies = true; 23 | 24 | var fiddlerComparer = new FiddlerSessionComparer.FiddlerSessionComparer(replaceInBodies, isGenexusApp); 25 | fiddlerComparer.Load(fiddlerSessionsFile1, fiddlerSessionsFile2, null); 26 | 27 | var result = fiddlerComparer.CompareFull(); 28 | 29 | // save page structure result to file 30 | (new StreamWriter(pagesResultFile)).WriteLine(result.ToString("", false)); 31 | } 32 | 33 | /// 34 | /// This creates a referers chain from the sessions list 35 | /// 36 | /// 37 | public static void Test(string sessionFileName) 38 | { 39 | var sessions = SazFormat.GetSessionsFromFile(sessionFileName); 40 | if (sessions == null) 41 | { 42 | throw new Exception("Sessions == null"); 43 | } 44 | 45 | var referersChain = new Page(null, "", "", "", "", "", -1); 46 | 47 | foreach (var session in sessions) 48 | { 49 | var i = 0; 50 | var headersArray = new string[session.oResponse.headers.Count()]; 51 | foreach (var httpResponseHeader in session.oResponse.headers) 52 | { 53 | headersArray[i] = httpResponseHeader.ToString(); 54 | i++; 55 | } 56 | 57 | var referer = session.oRequest.headers["Referer"]; 58 | var id = session.id; 59 | var uri = session.fullUrl; 60 | var body = session.HTTPMethodIs("POST") ? session.GetRequestBodyAsString() : ""; 61 | var htmlResponse = session.GetResponseBodyAsString(); 62 | var httpmethod = session.oRequest.headers.HTTPMethod; 63 | var responseHeaders = string.Join("\n", headersArray); 64 | var responseCode = session.responseCode; 65 | 66 | var refererPage = referersChain.FindRefererPage(referer, id); 67 | 68 | if (refererPage == null) 69 | { 70 | referersChain.Followers.Add(new Page(new Page(null, referer, "", "", "", "", -1), uri, body, htmlResponse, httpmethod, responseHeaders, responseCode)); 71 | } 72 | else 73 | { 74 | refererPage.Followers.Add(new Page(refererPage, uri, body, htmlResponse, httpmethod, responseHeaders, responseCode)); 75 | } 76 | } 77 | 78 | using (var fw = new StreamWriter(sessionFileName + "out.txt")) 79 | { 80 | fw.Write(referersChain.ToString("", false)); 81 | } 82 | } 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /FiddlerSessionComparerCLI_4.5/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("FiddlerSessionComparerCLI_4.5")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("FiddlerSessionComparerCLI_4.5")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("41a781f8-b393-4e45-8c1b-a5df27696218")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /FiddlerSessionComparerCLI_4.5/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /FiddlerSessionComparerGUI_4.5/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /FiddlerSessionComparerGUI_4.5/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /FiddlerSessionComparerGUI_4.5/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace FiddlerSessionComparerUI 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /FiddlerSessionComparerGUI_4.5/MainWindow.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 |