Skip to content

Commit 1837bf2

Browse files
committed
Add Ordering Api test and cleanup tests
1 parent ee8da23 commit 1837bf2

16 files changed

Lines changed: 489 additions & 14 deletions

test/Services/LoadTest/Catalog.API/GetCatalogBrands.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Request Method="GET" Guid="d24fe957-0cbb-46d4-8478-974de57e5cba" Version="1.1" Url="{{CatalogApiServer}}/api/{{ApiVersion}}/Catalog/CatalogBrands" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
55
</Items>
66
<ContextParameters>
7-
<ContextParameter Name="CatalogApiServer" Value="" />
7+
<ContextParameter Name="CatalogApiServer" Value="http://" />
88
<ContextParameter Name="ApiVersion" Value="v1" />
99
</ContextParameters>
1010
<ValidationRules>

test/Services/LoadTest/Catalog.API/GetCatalogFiltered.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Request Method="GET" Guid="d24fe957-0cbb-46d4-8478-974de57e5cba" Version="1.1" Url="{{CatalogApiServer}}/api/{{ApiVersion}}/Catalog/Items/type/{{CatalogTypeId}}/brand/{{CatalogBrandId}}" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
55
</Items>
66
<ContextParameters>
7-
<ContextParameter Name="CatalogApiServer" Value="" />
7+
<ContextParameter Name="CatalogApiServer" Value="http://" />
88
<ContextParameter Name="CatalogTypeId" Value="1" />
99
<ContextParameter Name="CatalogBrandId" Value="1" />
1010
<ContextParameter Name="ApiVersion" Value="v1" />

test/Services/LoadTest/Catalog.API/GetCatalogTypes.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Request Method="GET" Guid="d24fe957-0cbb-46d4-8478-974de57e5cba" Version="1.1" Url="{{CatalogApiServer}}/api/{{ApiVersion}}/Catalog/CatalogTypes" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
55
</Items>
66
<ContextParameters>
7-
<ContextParameter Name="CatalogApiServer" Value="" />
7+
<ContextParameter Name="CatalogApiServer" Value="http://" />
88
<ContextParameter Name="ApiVersion" Value="v1" />
99
</ContextParameters>
1010
<ValidationRules>

test/Services/LoadTest/Catalog.API/GetItem.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Request Method="GET" Guid="d24fe957-0cbb-46d4-8478-974de57e5cba" Version="1.1" Url="{{CatalogApiServer}}/api/{{ApiVersion}}/Catalog/Items/{{CatalogItemId}}" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
55
</Items>
66
<ContextParameters>
7-
<ContextParameter Name="CatalogApiServer" Value="" />
7+
<ContextParameter Name="CatalogApiServer" Value="http://" />
88
<ContextParameter Name="ApiVersion" Value="v1" />
99
<ContextParameter Name="CatalogItemId" Value="1" />
1010
</ContextParameters>

test/Services/LoadTest/Catalog.API/GetItemPic.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Request Method="GET" Guid="d24fe957-0cbb-46d4-8478-974de57e5cba" Version="1.1" Url="{{CatalogApiServer}}/api/{{ApiVersion}}/Pic/{{CatalogItemId}}" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
55
</Items>
66
<ContextParameters>
7-
<ContextParameter Name="CatalogApiServer" Value="" />
7+
<ContextParameter Name="CatalogApiServer" Value="http://" />
88
<ContextParameter Name="ApiVersion" Value="v1" />
99
<ContextParameter Name="CatalogItemId" Value="1" />
1010
</ContextParameters>

test/Services/LoadTest/Catalog.API/GetItems.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Request Method="GET" Guid="d24fe957-0cbb-46d4-8478-974de57e5cba" Version="1.1" Url="{{CatalogApiServer}}/api/{{ApiVersion}}/Catalog/Items" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
55
</Items>
66
<ContextParameters>
7-
<ContextParameter Name="CatalogApiServer" Value="" />
7+
<ContextParameter Name="CatalogApiServer" Value="http://" />
88
<ContextParameter Name="ApiVersion" Value="v1" />
99
</ContextParameters>
1010
<ValidationRules>

test/Services/LoadTest/Catalog.API/GetItemsByName.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Request Method="GET" Guid="d24fe957-0cbb-46d4-8478-974de57e5cba" Version="1.1" Url="{{CatalogApiServer}}/api/{{ApiVersion}}/Catalog/items/withname/{{CatalogItemName}}" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="" ReportingName="" IgnoreHttpStatusCode="False" />
55
</Items>
66
<ContextParameters>
7-
<ContextParameter Name="CatalogApiServer" Value="" />
7+
<ContextParameter Name="CatalogApiServer" Value="http://" />
88
<ContextParameter Name="CatalogItemName" Value=".Net" />
99
<ContextParameter Name="ApiVersion" Value="v1" />
1010
</ContextParameters>

test/Services/LoadTest/LoadTest.csproj

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,21 @@
109109
<None Include="Marketing.API\GetAllCampaigns.webtest">
110110
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
111111
</None>
112+
<None Include="Ordering.API\ShipOrder.webtest">
113+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
114+
</None>
115+
<None Include="Ordering.API\CancelOrder.webtest">
116+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
117+
</None>
118+
<None Include="Ordering.API\GetCardTypes.webtest">
119+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
120+
</None>
121+
<None Include="Ordering.API\GetAllOrders.webtest">
122+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
123+
</None>
124+
<None Include="Ordering.API\GetOrder.webtest">
125+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
126+
</None>
112127
<None Include="WebMVC\AddProducts.webtest">
113128
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
114129
</None>
@@ -125,9 +140,7 @@
125140
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
126141
</None>
127142
</ItemGroup>
128-
<ItemGroup>
129-
<Folder Include="Ordering.API\" />
130-
</ItemGroup>
143+
<ItemGroup />
131144
<Choose>
132145
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
133146
<ItemGroup>

test/Services/LoadTest/Marketing.API/GetAllCampaigns.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<WebTest Name="GetAllCampaigns" Id="bb2ad65f-7035-45c6-ab02-003376d478f4" Owner="" Priority="2147483647" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
2+
<WebTest Name="GetAllCampaigns" Id="19336ef5-34ae-4bf8-90df-c8d794558f71" Owner="" Priority="2147483647" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
33
<Items>
44
<Request Method="GET" Guid="6010f193-941a-4a7b-98d4-45be7699a0dc" Version="1.1" Url="{{MvcWebServer}}/Account/SignIn" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="{{IdentityApiServer}}/account/login?returnUrl=%2Fconnect%2Fauthorize%2Flogin%3Fclient_id%3Dmvc%26redirect_uri%3D{{MvcWebServer}}%252Fsignin-oidc%26response_type%3Dcode%20id_token%20token%26scope%3Dopenid%20profile%20orders%20basket%20marketing%26response_mode%3Dform_post%26nonce%3D636343249853641220.YTUyNDUwYmUtMDUwNi00YzViLWI4ZjItZGJhZDMwNmM1YjNlMDNhYjZmOGItZTk5YS00ZGEzLTg1Y2UtMDE3YTFjNWFlNjEw%26state%3DCfDJ8OCCkEVDCp5PrdqHtEgvt_mxNTrlU_psyuqjm9lkemQgTEZ-k_LUyThb4S21qtGcud5ajY1BOwzMlk0uvC0p8CB9hqSKaaDpjvspLXMLHjjsZNqjG3bdvnGSHp08_go1orFXlRLeC-8dNSlLlzynWJp9uK_WC56gjcJAiqQErMBVub5lacO-ph04so9LMkZ5KSFxP0qPlkYidej2RfOYkNFxzZnLVTs5ZB_l7IU3EPgh8geWXtks_bnlnPCq9CMnWKuxlTY4_M44DCp0mMWmK_JqBfGSlnEt5d2iz2QThepUUgIg0XQxZsEPl0rsdpN0AXOXOc9bgTm-ApXmoAyBRC-dM_9k59MdxYAbipZGcwOc" ReportingName="" IgnoreHttpStatusCode="False">
55
<Headers>

test/Services/LoadTest/Marketing.API/GetCampaign.webtest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<WebTest Name="GetCampaign" Id="46e9954f-0fe7-4e85-a5e6-9e77fc76238e" Owner="" Priority="2147483647" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
2+
<WebTest Name="GetCampaign" Id="aca56982-2a40-4721-8295-625371c14585" Owner="" Priority="2147483647" Enabled="True" CssProjectStructure="" CssIteration="" Timeout="0" WorkItemIds="" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010" Description="" CredentialUserName="" CredentialPassword="" PreAuthenticate="True" Proxy="default" StopOnError="False" RecordedResultFile="" ResultsLocale="">
33
<Items>
44
<Request Method="GET" Guid="6010f193-941a-4a7b-98d4-45be7699a0dc" Version="1.1" Url="{{MvcWebServer}}/Account/SignIn" ThinkTime="0" Timeout="300" ParseDependentRequests="True" FollowRedirects="True" RecordResult="True" Cache="False" ResponseTimeGoal="0" Encoding="utf-8" ExpectedHttpStatusCode="0" ExpectedResponseUrl="{{IdentityApiServer}}/account/login?returnUrl=%2Fconnect%2Fauthorize%2Flogin%3Fclient_id%3Dmvc%26redirect_uri%3D{{MvcWebServer}}%252Fsignin-oidc%26response_type%3Dcode%20id_token%20token%26scope%3Dopenid%20profile%20orders%20basket%20marketing%26response_mode%3Dform_post%26nonce%3D636343249853641220.YTUyNDUwYmUtMDUwNi00YzViLWI4ZjItZGJhZDMwNmM1YjNlMDNhYjZmOGItZTk5YS00ZGEzLTg1Y2UtMDE3YTFjNWFlNjEw%26state%3DCfDJ8OCCkEVDCp5PrdqHtEgvt_mxNTrlU_psyuqjm9lkemQgTEZ-k_LUyThb4S21qtGcud5ajY1BOwzMlk0uvC0p8CB9hqSKaaDpjvspLXMLHjjsZNqjG3bdvnGSHp08_go1orFXlRLeC-8dNSlLlzynWJp9uK_WC56gjcJAiqQErMBVub5lacO-ph04so9LMkZ5KSFxP0qPlkYidej2RfOYkNFxzZnLVTs5ZB_l7IU3EPgh8geWXtks_bnlnPCq9CMnWKuxlTY4_M44DCp0mMWmK_JqBfGSlnEt5d2iz2QThepUUgIg0XQxZsEPl0rsdpN0AXOXOc9bgTm-ApXmoAyBRC-dM_9k59MdxYAbipZGcwOc" ReportingName="" IgnoreHttpStatusCode="False">
55
<Headers>

0 commit comments

Comments
 (0)