Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
DummySolution
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hasan.bahjat
DummySolution
Commits
e3d2d8f9
Commit
e3d2d8f9
authored
Oct 14, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Solution Structure
parent
97191885
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
112 additions
and
0 deletions
+112
-0
Dummy.sln
Dummy.sln
+39
-0
Dummy.WebApp.csproj
src/Dummy.WebApp/Dummy.WebApp.csproj
+8
-0
Program.cs
src/Dummy.WebApp/Program.cs
+12
-0
Dummy.SeleniumTests.csproj
test/Dummy.SeleniumTests/Dummy.SeleniumTests.csproj
+18
-0
UnitTest1.cs
test/Dummy.SeleniumTests/UnitTest1.cs
+35
-0
No files found.
Dummy.sln
0 → 100644
View file @
e3d2d8f9
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.34601.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dummy.SeleniumTests", "test\Dummy.SeleniumTests\Dummy.SeleniumTests.csproj", "{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dummy.WebApp", "src\Dummy.WebApp\Dummy.WebApp.csproj", "{D2813A54-8E25-4717-BA9A-1136841CFC70}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source Code", "Source Code", "{C7744431-99CC-4DC4-8B9E-4C8990080EDC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{8DFC9025-3CCF-4C18-9DE2-FF1A01FF92AC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}.Release|Any CPU.Build.0 = Release|Any CPU
{D2813A54-8E25-4717-BA9A-1136841CFC70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D2813A54-8E25-4717-BA9A-1136841CFC70}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D2813A54-8E25-4717-BA9A-1136841CFC70}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D2813A54-8E25-4717-BA9A-1136841CFC70}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF} = {8DFC9025-3CCF-4C18-9DE2-FF1A01FF92AC}
{D2813A54-8E25-4717-BA9A-1136841CFC70} = {C7744431-99CC-4DC4-8B9E-4C8990080EDC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6022994C-495B-4C1F-8D91-893645AA30DA}
EndGlobalSection
EndGlobal
src/Dummy.WebApp/Dummy.WebApp.csproj
0 → 100644
View file @
e3d2d8f9
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
src/Dummy.WebApp/Program.cs
0 → 100644
View file @
e3d2d8f9
using
System
;
namespace
Dummy.WebApp
{
class
Program
{
static
void
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
"Hello World!"
);
}
}
}
test/Dummy.SeleniumTests/Dummy.SeleniumTests.csproj
0 → 100644
View file @
e3d2d8f9
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="coverlet.collector" Version="3.0.2" />
<PackageReference Include="Selenium.WebDriver" Version="4.17.0" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="129.0.6668.7000" />
</ItemGroup>
</Project>
test/Dummy.SeleniumTests/UnitTest1.cs
0 → 100644
View file @
e3d2d8f9
using
NUnit.Framework
;
using
OpenQA.Selenium
;
using
OpenQA.Selenium.Chrome
;
namespace
Dummy.SeleniumTests
{
public
class
Tests
{
[
SetUp
]
public
void
Setup
()
{
}
[
Test
]
public
void
googleChromeTest
()
{
var
driver
=
new
ChromeDriver
();
driver
.
Navigate
()
.
GoToUrl
(
"https:/google.com"
);
IWebElement
searchBox
=
driver
.
FindElement
(
By
.
Id
(
"APjFqb"
));
searchBox
.
SendKeys
(
"Selenium"
);
searchBox
.
Submit
();
//IWebElement button = driver.FindElement(By.Name("btnK"));
//button.Click();
Assert
.
IsTrue
(
driver
.
Title
.
Contains
(
"Selenium"
));
driver
.
Close
();
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment