Permalink
Browse files

Initial version.

  • Loading branch information...
1 parent 840a047 commit 3fe1fbe016aa4427edf79cb3862d91ab72ac44ad @PiotrNestor committed Nov 7, 2012
Showing with 3,164 additions and 0 deletions.
  1. +13 −0 Csharp/ResetDb/Program.cs
  2. +36 −0 Csharp/ResetDb/Properties/AssemblyInfo.cs
  3. +63 −0 Csharp/ResetDb/ResetDb.csproj
  4. +13 −0 Csharp/SaveDb/Program.cs
  5. +36 −0 Csharp/SaveDb/Properties/AssemblyInfo.cs
  6. +63 −0 Csharp/SaveDb/SaveDb.csproj
  7. +28 −0 Csharp/TestFW/Common/ECommerce/ECommerceConfig.cs
  8. +296 −0 Csharp/TestFW/Common/ECommerce/ECommerceRepo.cs
  9. +45 −0 Csharp/TestFW/Common/ECommerce/ECommerceRepo.rxrep
  10. +11 −0 Csharp/TestFW/Common/ECommerce/ECommerceView.cs
  11. +40 −0 Csharp/TestFW/Common/ECommerce/LoginView.cs
  12. +32 −0 Csharp/TestFW/Common/ECommerce/ProductsView.cs
  13. +7 −0 Csharp/TestFW/Common/GUI/GUIConfig.cs
  14. +28 −0 Csharp/TestFW/Common/GUI/GUIUtils.cs
  15. +49 −0 Csharp/TestFW/Common/Utils/HandleDB.cs
  16. +36 −0 Csharp/TestFW/Properties/AssemblyInfo.cs
  17. +80 −0 Csharp/TestFW/TestFW.csproj
  18. +3 −0 Csharp/TestFW/TestFW.csproj.user
  19. +54 −0 Csharp/TestFW/TestFW.sln
  20. BIN Csharp/TestFW/TestFW.suo
  21. +33 −0 Csharp/TestFW/TestGUI/GUITestCase.cs
  22. +39 −0 Csharp/TestFW/TestGUI/TestECommerce/ECommerceTestCase.cs
  23. +57 −0 Csharp/TestFW/TestGUI/TestECommerce/TestLogin/LoginTest.cs
  24. +49 −0 Csharp/TestFW/TestGUI/TestECommerce/TestLogin/LoginViewTest.cs
  25. 0 Python/TestFW/common/__init__.py
  26. 0 Python/TestFW/common/ecommerce/__init__.py
  27. +13 −0 Python/TestFW/common/ecommerce/config.py
  28. 0 Python/TestFW/common/ecommerce/db/__init__.py
  29. +4 −0 Python/TestFW/common/ecommerce/db/create_copy_db.py
  30. +4 −0 Python/TestFW/common/ecommerce/db/reset_db.py
  31. +14 −0 Python/TestFW/common/ecommerce/ecommerce_utils.py
  32. +42 −0 Python/TestFW/common/ecommerce/login_view.py
  33. +24 −0 Python/TestFW/common/ecommerce/products_view.py
  34. 0 Python/TestFW/common/ecommerce/repository/__init__.py
  35. +12 −0 Python/TestFW/common/ecommerce/repository/ecommerce_repo.py
  36. 0 Python/TestFW/common/gui/__init__.py
  37. +24 −0 Python/TestFW/common/gui/guiutils.py
  38. 0 Python/TestFW/common/utils/__init__.py
  39. +30 −0 Python/TestFW/common/utils/cmdutils.py
  40. +25 −0 Python/TestFW/common/utils/config.py
  41. +35 −0 Python/TestFW/common/utils/handledb.py
  42. +8 −0 Python/TestFW/common/utils/utils.py
  43. +296 −0 Python/TestFW/repo/ECommerce_repo/ECommerce_repo.cs
  44. +68 −0 Python/TestFW/repo/ECommerce_repo/ECommerce_repo.csproj
  45. +3 −0 Python/TestFW/repo/ECommerce_repo/ECommerce_repo.csproj.user
  46. +45 −0 Python/TestFW/repo/ECommerce_repo/ECommerce_repo.rxrep
  47. +20 −0 Python/TestFW/repo/ECommerce_repo/ECommerce_repo.sln
  48. BIN Python/TestFW/repo/ECommerce_repo/ECommerce_repo.suo
  49. +36 −0 Python/TestFW/repo/ECommerce_repo/Properties/AssemblyInfo.cs
  50. 0 Python/TestFW/test_gui/__init__.py
  51. +7 −0 Python/TestFW/test_gui/__main__.py
  52. +18 −0 Python/TestFW/test_gui/maintc.py
  53. 0 Python/TestFW/test_gui/test_ecommerce/__init__.py
  54. +7 −0 Python/TestFW/test_gui/test_ecommerce/__main__.py
  55. +27 −0 Python/TestFW/test_gui/test_ecommerce/ecommercetc.py
  56. 0 Python/TestFW/test_gui/test_ecommerce/test_login/__init__.py
  57. +7 −0 Python/TestFW/test_gui/test_ecommerce/test_login/__main__.py
  58. +72 −0 Python/TestFW/test_gui/test_ecommerce/test_login/test_dd_login.py
  59. +35 −0 Python/TestFW/test_gui/test_ecommerce/test_login/test_login_view.py
  60. +18 −0 Ruby/TestFW/ant/test.xml
  61. +28 −0 Ruby/TestFW/common/ecommerce/Cfg.rb
  62. +61 −0 Ruby/TestFW/common/ecommerce/LoginView.rb
  63. +46 −0 Ruby/TestFW/common/ecommerce/ProductsView.rb
  64. +5 −0 Ruby/TestFW/common/ecommerce/db/CreateCopyDB.rb
  65. +5 −0 Ruby/TestFW/common/ecommerce/db/ResetDB.rb
  66. +8 −0 Ruby/TestFW/common/example/Cfg.rb
  67. +29 −0 Ruby/TestFW/common/example/HomeView.rb
  68. +26 −0 Ruby/TestFW/common/gui/Cfg.rb
  69. +33 −0 Ruby/TestFW/common/gui/Utils.rb
  70. +32 −0 Ruby/TestFW/common/utils/Cfg.rb
  71. +50 −0 Ruby/TestFW/common/utils/CommandControl.rb
  72. +7 −0 Ruby/TestFW/common/utils/Debug.rb
  73. +24 −0 Ruby/TestFW/common/utils/HandleDB.rb
  74. +32 −0 Ruby/TestFW/common/utils/Helpers.rb
  75. +44 −0 Ruby/TestFW/test_gui/GUITestCase.rb
  76. +31 −0 Ruby/TestFW/test_gui/GUITestSuite.rb
  77. +40 −0 Ruby/TestFW/test_gui/PerformanceTestCase.rb
  78. +12 −0 Ruby/TestFW/test_gui/test_ecommerce/ECommerceTestCase.rb
  79. +13 −0 Ruby/TestFW/test_gui/test_ecommerce/ECommerceTestSuite.rb
  80. +2 −0 Ruby/TestFW/test_gui/test_ecommerce/RunECommerceTestSuite.rb
  81. +14 −0 Ruby/TestFW/test_gui/test_ecommerce/resources/jmeter/bsf/api_request_ok.js
  82. +197 −0 Ruby/TestFW/test_gui/test_ecommerce/resources/jmeter/example.jmx
  83. +218 −0 Ruby/TestFW/test_gui/test_ecommerce/resources/jmeter/load/load.jmx
  84. +70 −0 Ruby/TestFW/test_gui/test_ecommerce/test_login/test_dd_login.rb
  85. +49 −0 Ruby/TestFW/test_gui/test_ecommerce/test_login/test_login.rb
  86. +33 −0 Ruby/TestFW/test_gui/test_ecommerce/test_login/test_login_view.rb
  87. +31 −0 Ruby/TestFW/test_gui/test_ecommerce/test_performance/test_examp.rb
  88. +19 −0 Ruby/TestFW/test_gui/test_example/test_example.rb
@@ -0,0 +1,13 @@
+namespace ResetDb
+{
+ using TestFW.Common.Utils;
+ using TestFW.Common.ECommerce;
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ HandleDB.resetDb(ECommerceConfig.dbHost, ECommerceConfig.dbUser, ECommerceConfig.dbPassword,
+ ECommerceConfig.dbName, ECommerceConfig.dbCopyName);
+ }
+ }
+}
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("ResetDb")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ResetDb")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("c023abde-83d3-4be7-b224-beacee2b9025")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{2C52731A-9195-4FCD-B378-95D313EBC0C5}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ResetDb</RootNamespace>
+ <AssemblyName>ResetDb</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\TestFW\TestFW.csproj">
+ <Project>{610FD34C-BB03-45FF-A62A-6A5F971215B8}</Project>
+ <Name>TestFW</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
@@ -0,0 +1,13 @@
+namespace SaveDb
+{
+ using TestFW.Common.Utils;
+ using TestFW.Common.ECommerce;
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ HandleDB.saveDb(ECommerceConfig.dbHost, ECommerceConfig.dbUser, ECommerceConfig.dbPassword,
+ ECommerceConfig.dbName, ECommerceConfig.dbCopyName);
+ }
+ }
+}
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("SaveDb")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("SaveDb")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("f919e182-d6fc-43a9-898a-0176b1ae3638")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{639B6C80-FDC3-42B5-B859-633D4B6482B1}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>SaveDb</RootNamespace>
+ <AssemblyName>SaveDb</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\TestFW\TestFW.csproj">
+ <Project>{610FD34C-BB03-45FF-A62A-6A5F971215B8}</Project>
+ <Name>TestFW</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
@@ -0,0 +1,28 @@
+namespace TestFW.Common.ECommerce
+{
+ using TestFW.Common.GUI;
+
+ public static class ECommerceConfig
+ {
+ public static string which_log = "";
+ public static string hostDomain = "localhost:3000";
+ public static string loginUrl = "http://" + hostDomain + "/login";
+ public static string productsUrl = "http://" + hostDomain + "/admin/merchandise/products";
+
+ public static string adminName = "admin@notarealemail.com";
+ public static string adminPassword = "admin_user_530";
+
+ public static string databaseName = "ecommerce_dev";
+ public static string databaseCopyName = "ecommerce_dev_copy";
+
+ public static string browserName = "IE";
+ public static int browserDelay = 10000;
+ public static int browserShortDelay = 2000;
+
+ public static string dbHost = "localhost";
+ public static string dbUser = "root";
+ public static string dbPassword = "pass";
+ public static string dbName = "ecommerce_dev";
+ public static string dbCopyName = "ecommerce_dev_copy";
+ }
+}
Oops, something went wrong.

0 comments on commit 3fe1fbe

Please sign in to comment.