C#
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
|
||||
<PackageReference Include="Selenium.WebDriver" Version="4.8.0" />
|
||||
<PackageReference Include="xunit" Version="2.4.2" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TestRun id="99cdfa3c-3602-4a69-a7af-1df2372e1cb9" name="lukas.kanka@NB-TP-1264 2023-02-09 08:54:36" runUser="UNIPROG\lukas.kanka" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
|
||||
<Times creation="2023-02-09T08:54:36.1953136+01:00" queuing="2023-02-09T08:54:36.1953139+01:00" start="2023-02-09T08:54:07.3179035+01:00" finish="2023-02-09T08:54:36.2148501+01:00" />
|
||||
<TestSettings name="default" id="fb90c911-7b18-48ad-9436-b7c71d12d08b">
|
||||
<Deployment runDeploymentRoot="lukas.kanka_NB-TP-1264_2023-02-09_08_54_36" />
|
||||
</TestSettings>
|
||||
<Results>
|
||||
<UnitTestResult executionId="2b54b5c5-19e4-4d5e-8b00-a9fc3cdf572a" testId="6f7ec810-7e13-9fe3-b284-2a6adf74acdc" testName="Search.UnitTest1.Test1" computerName="NB-TP-1264" duration="00:00:16.4271322" startTime="2023-02-09T08:54:35.9724997+01:00" endTime="2023-02-09T08:54:35.9726443+01:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="2b54b5c5-19e4-4d5e-8b00-a9fc3cdf572a" />
|
||||
</Results>
|
||||
<TestDefinitions>
|
||||
<UnitTest name="Search.UnitTest1.Test1" storage="c:\testing.net\gitlab\testing\search_lukan_xunit\bin\debug\net7.0\search_lukan_xunit.dll" id="6f7ec810-7e13-9fe3-b284-2a6adf74acdc">
|
||||
<Execution id="2b54b5c5-19e4-4d5e-8b00-a9fc3cdf572a" />
|
||||
<TestMethod codeBase="C:\Testing.Net\GitLab\testing\Search_Lukan_xUnit\bin\Debug\net7.0\Search_Lukan_xUnit.dll" adapterTypeName="executor://xunit/VsTestRunner2/netcoreapp" className="Search.UnitTest1" name="Test1" />
|
||||
</UnitTest>
|
||||
</TestDefinitions>
|
||||
<TestEntries>
|
||||
<TestEntry testId="6f7ec810-7e13-9fe3-b284-2a6adf74acdc" executionId="2b54b5c5-19e4-4d5e-8b00-a9fc3cdf572a" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||
</TestEntries>
|
||||
<TestLists>
|
||||
<TestList name="Výsledky neuvedené v seznamu" id="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||
<TestList name="Všechny načtené výsledky" id="19431567-8539-422a-85d7-44ee4e166bda" />
|
||||
</TestLists>
|
||||
<ResultSummary outcome="Completed">
|
||||
<Counters total="1" executed="1" passed="1" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
|
||||
<Output>
|
||||
<StdOut>[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.5+1caef2f33e (64-bit .NET 7.0.2)
|
||||
[xUnit.net 00:00:07.45] Discovering: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:07.50] Discovered: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:07.50] Starting: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:24.04] Finished: Search_Lukan_xUnit
|
||||
</StdOut>
|
||||
</Output>
|
||||
</ResultSummary>
|
||||
</TestRun>
|
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TestRun id="c5ec2be2-80cd-4d68-a0cb-8f27e139c5ba" name="lukas.kanka@NB-TP-1264 2023-02-09 09:10:29" runUser="UNIPROG\lukas.kanka" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
|
||||
<Times creation="2023-02-09T09:10:29.2057805+01:00" queuing="2023-02-09T09:10:29.2057809+01:00" start="2023-02-09T09:10:11.4538048+01:00" finish="2023-02-09T09:10:29.2205828+01:00" />
|
||||
<TestSettings name="default" id="7fd88c62-196d-456b-b706-343a076135d7">
|
||||
<Deployment runDeploymentRoot="lukas.kanka_NB-TP-1264_2023-02-09_09_10_29" />
|
||||
</TestSettings>
|
||||
<Results>
|
||||
<UnitTestResult executionId="0f7fe56d-b4e4-4beb-8458-99d483831786" testId="6f7ec810-7e13-9fe3-b284-2a6adf74acdc" testName="Search.UnitTest1.Test1" computerName="NB-TP-1264" duration="00:00:14.5686845" startTime="2023-02-09T09:10:29.0212450+01:00" endTime="2023-02-09T09:10:29.0213046+01:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="0f7fe56d-b4e4-4beb-8458-99d483831786" />
|
||||
</Results>
|
||||
<TestDefinitions>
|
||||
<UnitTest name="Search.UnitTest1.Test1" storage="c:\testing.net\gitlab\testing\search_lukan_xunit\bin\debug\net7.0\search_lukan_xunit.dll" id="6f7ec810-7e13-9fe3-b284-2a6adf74acdc">
|
||||
<Execution id="0f7fe56d-b4e4-4beb-8458-99d483831786" />
|
||||
<TestMethod codeBase="C:\Testing.Net\GitLab\testing\Search_Lukan_xUnit\bin\Debug\net7.0\Search_Lukan_xUnit.dll" adapterTypeName="executor://xunit/VsTestRunner2/netcoreapp" className="Search.UnitTest1" name="Test1" />
|
||||
</UnitTest>
|
||||
</TestDefinitions>
|
||||
<TestEntries>
|
||||
<TestEntry testId="6f7ec810-7e13-9fe3-b284-2a6adf74acdc" executionId="0f7fe56d-b4e4-4beb-8458-99d483831786" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||
</TestEntries>
|
||||
<TestLists>
|
||||
<TestList name="Výsledky neuvedené v seznamu" id="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||
<TestList name="Všechny načtené výsledky" id="19431567-8539-422a-85d7-44ee4e166bda" />
|
||||
</TestLists>
|
||||
<ResultSummary outcome="Completed">
|
||||
<Counters total="1" executed="1" passed="1" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
|
||||
<Output>
|
||||
<StdOut>[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.5+1caef2f33e (64-bit .NET 7.0.2)
|
||||
[xUnit.net 00:00:01.56] Discovering: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:01.61] Discovered: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:01.62] Starting: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:16.30] Finished: Search_Lukan_xUnit
|
||||
</StdOut>
|
||||
</Output>
|
||||
</ResultSummary>
|
||||
</TestRun>
|
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TestRun id="f8e16325-4402-4f9a-ad46-b23ad059684f" name="lukas.kanka@NB-TP-1264 2023-02-09 09:22:04" runUser="UNIPROG\lukas.kanka" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
|
||||
<Times creation="2023-02-09T09:22:04.8832302+01:00" queuing="2023-02-09T09:22:04.8832308+01:00" start="2023-02-09T09:21:47.7101670+01:00" finish="2023-02-09T09:22:04.9053482+01:00" />
|
||||
<TestSettings name="default" id="e08c3b7c-9160-40bb-af02-a2734ecdda0c">
|
||||
<Deployment runDeploymentRoot="lukas.kanka_NB-TP-1264_2023-02-09_09_22_04" />
|
||||
</TestSettings>
|
||||
<Results>
|
||||
<UnitTestResult executionId="692dff1d-6a56-4129-9b5e-5965a26bf954" testId="6f7ec810-7e13-9fe3-b284-2a6adf74acdc" testName="Search.UnitTest1.Test1" computerName="NB-TP-1264" duration="00:00:13.6372616" startTime="2023-02-09T09:22:04.6779027+01:00" endTime="2023-02-09T09:22:04.6779642+01:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="692dff1d-6a56-4129-9b5e-5965a26bf954" />
|
||||
</Results>
|
||||
<TestDefinitions>
|
||||
<UnitTest name="Search.UnitTest1.Test1" storage="c:\testing.net\gitlab\testing\search_lukan_xunit\bin\debug\net7.0\search_lukan_xunit.dll" id="6f7ec810-7e13-9fe3-b284-2a6adf74acdc">
|
||||
<Execution id="692dff1d-6a56-4129-9b5e-5965a26bf954" />
|
||||
<TestMethod codeBase="C:\Testing.Net\GitLab\testing\Search_Lukan_xUnit\bin\Debug\net7.0\Search_Lukan_xUnit.dll" adapterTypeName="executor://xunit/VsTestRunner2/netcoreapp" className="Search.UnitTest1" name="Test1" />
|
||||
</UnitTest>
|
||||
</TestDefinitions>
|
||||
<TestEntries>
|
||||
<TestEntry testId="6f7ec810-7e13-9fe3-b284-2a6adf74acdc" executionId="692dff1d-6a56-4129-9b5e-5965a26bf954" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||
</TestEntries>
|
||||
<TestLists>
|
||||
<TestList name="Výsledky neuvedené v seznamu" id="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||
<TestList name="Všechny načtené výsledky" id="19431567-8539-422a-85d7-44ee4e166bda" />
|
||||
</TestLists>
|
||||
<ResultSummary outcome="Completed">
|
||||
<Counters total="1" executed="1" passed="1" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
|
||||
<Output>
|
||||
<StdOut>[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.5+1caef2f33e (64-bit .NET 7.0.2)
|
||||
[xUnit.net 00:00:01.67] Discovering: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:01.74] Discovered: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:01.74] Starting: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:15.49] Finished: Search_Lukan_xUnit
|
||||
</StdOut>
|
||||
</Output>
|
||||
</ResultSummary>
|
||||
</TestRun>
|
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TestRun id="e0e5230f-f153-45ac-a58d-f03d6e77b400" name="lukas.kanka@NB-TP-1264 2023-02-09 11:07:07" runUser="UNIPROG\lukas.kanka" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
|
||||
<Times creation="2023-02-09T11:07:07.2385145+01:00" queuing="2023-02-09T11:07:07.2385152+01:00" start="2023-02-09T11:06:39.3541818+01:00" finish="2023-02-09T11:07:07.2734290+01:00" />
|
||||
<TestSettings name="default" id="4131e8ed-9595-4e35-8e24-a1d9a63c78a5">
|
||||
<Deployment runDeploymentRoot="lukas.kanka_NB-TP-1264_2023-02-09_11_07_07" />
|
||||
</TestSettings>
|
||||
<Results>
|
||||
<UnitTestResult executionId="35b5e249-8410-4355-9022-4fb0932fe893" testId="6f7ec810-7e13-9fe3-b284-2a6adf74acdc" testName="Search.UnitTest1.Test1" computerName="NB-TP-1264" duration="00:00:21.4650182" startTime="2023-02-09T11:07:07.0508085+01:00" endTime="2023-02-09T11:07:07.0508823+01:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Passed" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="35b5e249-8410-4355-9022-4fb0932fe893" />
|
||||
</Results>
|
||||
<TestDefinitions>
|
||||
<UnitTest name="Search.UnitTest1.Test1" storage="c:\testing.net\gitlab\testing\search_lukan_xunit\bin\debug\net7.0\search_lukan_xunit.dll" id="6f7ec810-7e13-9fe3-b284-2a6adf74acdc">
|
||||
<Execution id="35b5e249-8410-4355-9022-4fb0932fe893" />
|
||||
<TestMethod codeBase="C:\Testing.Net\GitLab\testing\Search_Lukan_xUnit\bin\Debug\net7.0\Search_Lukan_xUnit.dll" adapterTypeName="executor://xunit/VsTestRunner2/netcoreapp" className="Search.UnitTest1" name="Test1" />
|
||||
</UnitTest>
|
||||
</TestDefinitions>
|
||||
<TestEntries>
|
||||
<TestEntry testId="6f7ec810-7e13-9fe3-b284-2a6adf74acdc" executionId="35b5e249-8410-4355-9022-4fb0932fe893" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||
</TestEntries>
|
||||
<TestLists>
|
||||
<TestList name="Výsledky neuvedené v seznamu" id="8c84fa94-04c1-424b-9868-57a2d4851a1d" />
|
||||
<TestList name="Všechny načtené výsledky" id="19431567-8539-422a-85d7-44ee4e166bda" />
|
||||
</TestLists>
|
||||
<ResultSummary outcome="Completed">
|
||||
<Counters total="1" executed="1" passed="1" failed="0" error="0" timeout="0" aborted="0" inconclusive="0" passedButRunAborted="0" notRunnable="0" notExecuted="0" disconnected="0" warning="0" completed="0" inProgress="0" pending="0" />
|
||||
<Output>
|
||||
<StdOut>[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.4.5+1caef2f33e (64-bit .NET 7.0.2)
|
||||
[xUnit.net 00:00:04.22] Discovering: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:04.28] Discovered: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:04.29] Starting: Search_Lukan_xUnit
|
||||
[xUnit.net 00:00:25.86] Finished: Search_Lukan_xUnit
|
||||
</StdOut>
|
||||
</Output>
|
||||
</ResultSummary>
|
||||
</TestRun>
|
24
Testing_Win/xUnit/Search_Lukan_xUnit/UnitTest1.cs
Normal file
24
Testing_Win/xUnit/Search_Lukan_xUnit/UnitTest1.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using OpenQA.Selenium;
|
||||
using OpenQA.Selenium.Chrome;
|
||||
using Xunit;
|
||||
|
||||
namespace Search;
|
||||
|
||||
public class UnitTest1
|
||||
{
|
||||
[Fact]
|
||||
public void Test1()
|
||||
{
|
||||
IWebDriver driver = new ChromeDriver();
|
||||
driver.Navigate().GoToUrl("https://www.lukan.cz");
|
||||
driver.Manage().Window.Maximize();
|
||||
|
||||
IWebElement searchBox = driver.FindElement(By.Name("s"));
|
||||
searchBox.SendKeys("test");
|
||||
searchBox.Submit();
|
||||
|
||||
Thread.Sleep(3000);
|
||||
|
||||
driver.Quit();
|
||||
}
|
||||
}
|
1
Testing_Win/xUnit/Search_Lukan_xUnit/Usings.cs
Normal file
1
Testing_Win/xUnit/Search_Lukan_xUnit/Usings.cs
Normal file
@ -0,0 +1 @@
|
||||
global using Xunit;
|
3
Testing_Win/xUnit/Search_Lukan_xUnit/bash.bat
Normal file
3
Testing_Win/xUnit/Search_Lukan_xUnit/bash.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
dotnet test --logger:"html;LogFilePath=testresults.html"
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
@ -0,0 +1,9 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net7.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "7.0.0"
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user