How to run Selenium C# test from Jenkins | .Net SDK Support | Jenkins C# pipeline example

Ғылым және технология

In this video I am going to show you, how you can integrate your c# automation script with Jenkins for continuous testing.
So lets move inside the video.
*************Please comment in case of any query************
Please watch below videos as well -
Jenkins Setup : • #1 Jenkins integration...
Create Selenium C# framework : • #2 Create Selenium fra...
Selenium 4 new features: • Selenium 4 Features | ...
What is Same Origin Policy : • What is Same-Origin po...
Best way to create If-else block : • Best way to create if-...
Comments in code good or bad: • Are comments in code g...
Dependency Inversion Principle: • #5 SOLID Principles | ...
Interface Segregation Principle : • #4 SOLID Principles | ...
Liskov Substitution Principle: • #3 SOLID Principles | ...
Open/Closed Principle : • #2 SOLID Principles | ...
Single Responsibility Principle : • #1 SOLID Principles | ...
git pull and git fetch : • #7 Git Tutorial | What...
git tag : • #6 Git Tutorial | What...
git pull request : • #5 Git Tutorial | Git ...
git branching strategy : • #4 Git Tutorial | Bran...
github overview : • #3 Git Tutorial | GitH...
git installation on windows : • #2 Git Tutorial | Git ...
git architecture : • #1 Git Tutorial | Vers...
Widening Primitive Conversion: • Do you know the output...
To start with selenium project in c#. : • Selenium with C# | Cre...
5 time saving tips for visual studio : • 5 Time Saving Shortcut...
Drag and drop operation in selenium : • How to perform drag & ...
How to switch dotnet core version : • How to switch .Net cor...
Ternary or conditional operator : • Replace if-else block ...
String manipulation : • Avoid using String var...
Klov report server : • Selenium with C# | Klo...
Dynamic v/s Var in c# : • Dynamic vs Var | C#
How to setup selenium grid in docker : • How to setup Selenium ...
Selenium with C# - Klov Report : • Selenium with C# | Klo...
Selenium with C# - Extent Report : • Selenium with C# | Ext...
Selenium with C# - Create Project to automate test (Selenium + Specflow ) : • Video
Selenium with C# - Parallel Execution and Screenshot : • Video
Selenium with C# - All about feature files : • Video
Serilog - Logging in Automation Framework : • Serilog | Logging in A...
Selenium with C# - Specflow - External Bindings : • Selenium C# | Specflow...
Selenium - Working with Excel - Part 1 : • #1 Working with Excel ...
Selenium with Java - Cucumber Html Report : • Selenium with Java | C...
Logging in Java : • Log4J2 | Logging in Ja...
Object Repository | YAML file | Selenium JAVA | BDD Framework - • Object Repository | Ho...

Пікірлер: 28

  • @fiodorkorzkz
    @fiodorkorzkz Жыл бұрын

    Thanks a lot. I've wasted 2 hours before I'd encountered this video

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    Glad it helped 😊

  • @qwerty89993
    @qwerty89993 Жыл бұрын

    Thank you!

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    Glad to know it helped 🙂

  • @runawayofficial4151
    @runawayofficial4151 Жыл бұрын

    Are you integrating an existing framework such as Visual Studio suite to connect to jenkins and run the entire unit tests within that suite?

  • @shauncs
    @shauncs Жыл бұрын

    Hi, I have a Jenkins freestyle project, serving as a CI/CD pipeline. Upon committing new changes, it triggers automated unit tests and integration tests, and I plan to add Selenium UI automation tests as well. I'm unsure if running UI automation tests in the staging server is the correct way or not? If not at what stage should I run them? However, this will open multiple browser windows, and I have concerns about how to remove them.

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    Hi, I have one question over here. Does your pipeline contain the deployment also? If yes, then you can run your selenium test as a part of CI/CD. Regarding opened instances of browser, if you have handled the driver.quit method correctly in your framework, then you won't face this issue.

  • @shauncs

    @shauncs

    Жыл бұрын

    @@maximumautomation Thanks mate!🔥💯 Yes, deployment also happens there. Below are the steps I'm currently using 1. dotnet restore 2. dotnet build 3. dotnet publish 4. stop the app pool 5. copy published files to IIS 6. restart the app pool 7. Run UI autmation tests Here I have two concerns, 1. If ui automation tests giving errors --> at this stage files are deployed to IIS already. Hoe to handle a such scenario. 2. stop and restarting the app pool ( what do you think of this step. I'm doing this because I faced some issues copying files to IIS folder while app pool is running)

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    Hi, Below are my thoughts on the same. 🙂 1. If selenium scripts fail then we might have identified a bug in the application. So you can continue with the current deployment even if it fails because developers or testers will need that environment to reproduce the issue. 2. To be honest I have never deployed the files to the IIS but I am sure that there might be any plugin like msdeploy which can be used to replace the files. You can refer to the URL below for the same. learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/web-deployment-in-the-enterprise/deploying-web-packages

  • @shauncs

    @shauncs

    Жыл бұрын

    @@maximumautomationThanks! That cleared my doubts.

  • @Brunojulionel
    @Brunojulionel Жыл бұрын

    Hello, I'm Brazilian, I don't speak English very well, but I have a question... do you know how to run the test after the Jenkins Build? to see if the information is expected?

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    Hi Bruno, If i understand correctly then, do you want to run your tests after build deployment?

  • @aquamar1ne775
    @aquamar1ne775 Жыл бұрын

    how can I report test results?

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    Please watch the video below for the same. kzread.info/dash/bejne/o6Nlp8-rZsapkco.html

  • @Tuma-um1lj
    @Tuma-um1lj Жыл бұрын

    How do I access unavailable videos from the list below this video?

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    Could you please share the link which you are trying to access? Let me have a look.

  • @Tuma-um1lj

    @Tuma-um1lj

    Жыл бұрын

    @@maximumautomation Selenium with C# - Create Project to automate test (Selenium + Specflow ) : kzread.info/dash/bejne/noKctJdpm7WehdY.html

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    You can watch videos available in the below playlist. Learn Selenium with C#: kzread.info/head/PL6SXxvjnlkaSeVaIoKxjcv5p_xTCwifKs

  • @Tuma-um1lj

    @Tuma-um1lj

    Жыл бұрын

    @@maximumautomation thank you

  • @maximumautomation

    @maximumautomation

    Жыл бұрын

    No problem. Hope it helps.

  • @vinothkumar-gg5cd
    @vinothkumar-gg5cd2 ай бұрын

    Hi sir, while build the file Iam getting this error NU1102: Unable to find package coverlet.collector with version (>= 6.0.1) and checked packages installed in my project file so please help me here

  • @maximumautomation

    @maximumautomation

    2 ай бұрын

    It's a nuget package error. Please check your csproj file.

  • @vinothkumar-ek9zd

    @vinothkumar-ek9zd

    2 ай бұрын

    Everything is settled properly but still I am facing the same error so please help me

  • @maximumautomation

    @maximumautomation

    2 ай бұрын

    Are you able to run your test without Jenkins job?

  • @vinothkumar-gg5cd

    @vinothkumar-gg5cd

    2 ай бұрын

    @@maximumautomation yes i can able to run it so where the issue in Jenkins setup i couldn't able to found it 😞

  • @maximumautomation

    @maximumautomation

    2 ай бұрын

    Is it possible for you to share the Jenkins console logs?

Келесі