You are on page 1of 1

1. .Net Core 3.

1
2. chromedriver: https://chromedriver.storage.googleapis.com/index.html?
path=80.0.3987.106/
3. Create folder FRAMEWORK > right click > Open with VSCode
4. VSCode
1. extensions:
- C#
- PackSharp
2. commands:
- F1 to open commands menu
- PackSharp: Create New Project > enter
- choose: Class library
- name: AutPractice --> ovde drzimo Pages, Utilitis
itd..
- F1
- PackSharp: Create New Project > enter
- choose: NUnit 3 Test Project
- name: AutPractice.Tests --> ovde su nam testovi
- F1
- PackSharp: Create New Project > enter
- choose: Solution file
- name: Solution
> in terminal:
- to add projects to solution file:
- dotnet sln add AutPractice
- dotnet sln add AutoPractice.Tests
- dotnet build

!Note: ukoliko ne vidis .vscode folder da se pojavio, onda F1 > type:


"Developer: Reload Window" > enter
- select folder AutPractice and F1
- PackSharp: Bootstrap Selenium
results:
1. in AutPractice.csproj were added Selenium.Support and
Selenium.WebDriver references
2. _drivers folder with chromedriver was created
!Note: ukoliko nije, kao kod mene, onda je potrebno rucno
ubaciti chromedriver:
- Unzip > copy chromedriver to:
FRAMEWORK\AutPractice.Tests\bin\Debug\netcoreapp3.1

!Note: testove pokrecemo iz AutPractice.Tests foldera a Selenium


nam je u folderu AutPractice pa
u ovom slucaju moramo da refereciramo AutPractice.Tests na
AutPractice preko:
F1 > PackSharp: Add Project Reference > choose
AutPractice.Tests > enter > choose AutPractice > enter

You might also like