Skip to content

Commit

Permalink
to quick demo of screenshot attachments made changes to make screensh…
Browse files Browse the repository at this point in the history
…ots each time after test (not only for failed)

in the aquality settings changed:
- placeholders' text of dynamic variables
- projectId configured to 1 as default as 0 is not allowed

Also updated nuget package versions to latest compatible
  • Loading branch information
mialeska committed Sep 10, 2020
1 parent 96a4239 commit 8f3bde3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aquality.WinAppDriver" Version="0.5.2" />
<PackageReference Include="Aquality.WinAppDriver" Version="1.3.0" />
<PackageReference Include="AqualityTracking.SpecFlowPlugin" Version="1.0.1" />
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1">
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="SpecFlow" Version="3.1.97" />
<PackageReference Include="SpecFlow.Allure" Version="3.0.0.10" />
<PackageReference Include="SpecFlow.NUnit" Version="3.1.97" />
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.1.97" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="SpecFlow" Version="3.3.74" />
<PackageReference Include="SpecFlow.Allure" Version="3.1.0.6" />
<PackageReference Include="SpecFlow.NUnit" Version="3.3.74" />
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.3.74" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public ScreenshotHooks(ScenarioContext scenarioContext, ScreenshotProvider scree
[AfterScenario(Order = 0)]
public void TakeScreenshot()
{
if (scenarioContext.ScenarioExecutionStatus != ScenarioExecutionStatus.OK
&& AqualityServices.IsApplicationStarted)
if (AqualityServices.IsApplicationStarted)
{
var pathToScreenshot = screenshotProvider.TakeScreenshot();
TestContext.AddTestAttachment(pathToScreenshot);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"enabled": false,
"host": "{aquality_tracking_address}",
"token": "{api_token}",
"projectId": 0,
"host": "{protocol_host_and_port}",
"token": "{generated_api_token}",
"projectId": 1,
"executor": "{name_of_executor}",
"suiteName": "{name_of_test_suite}",
"suiteName": "{project_suite_name_to_import}",
"buildName": "{name_of_ci_build}",
"environment": "{name_of_execution_environment}",
"ciBuild": "{link_to_ci_build}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aquality.WinAppDriver" Version="0.5.2" />
<PackageReference Include="Aquality.WinAppDriver" Version="1.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 8f3bde3

Please sign in to comment.