How to use PyTest with Selenium and Integration with Jenkins and Allure Reporting

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 50

  • @SatishKumar-hz1tj
    @SatishKumar-hz1tj 3 года назад +1

    Thanks Ekta and Mukesh, much needed this type of videos.
    I am unable to generate test reports by using jenkins as I am working on Selenium Python automation, but your video help me to get out of this issue.

    • @Mukeshotwani
      @Mukeshotwani  3 года назад +1

      You are most welcome Thanks Satish

  • @bhumilvyas989
    @bhumilvyas989 2 года назад +1

    Thanks, after playing with different solutions for 6hrs I was able to find this video and found new step to call activate .bat which is something new that helped me to run the script.

  • @sathya-enjoy_lifetothefullest
    @sathya-enjoy_lifetothefullest 4 года назад +4

    Much awaited video.. thanks Mukesh

  • @azharqurashi3964
    @azharqurashi3964 4 года назад +2

    Thanks Ekta.... Its very usefull vedio about integration python allure reports with jenkins.

    • @Mukeshotwani
      @Mukeshotwani  4 года назад

      Glad you liked it

    • @azharqurashi3964
      @azharqurashi3964 4 года назад

      @@Mukeshotwani Mukesh getting error while getting file from Git hub... request you to upload the vedio to get the file from github... Thanks in Advance

  • @kameshdaya4659
    @kameshdaya4659 3 года назад

    Hu Mukesh ji, Please upload python programming and more videos on how to use Maven, Testng etc.. Expecting more technical videos in selenium/python. What your doing is great service for QA'S. I salute your teachings & I'm your great fan as well :-)

  • @AnuragGupta-re8kw
    @AnuragGupta-re8kw 3 года назад +1

    Thanks Ekta and Mukesh! Curious to know this allure report data to show on grafana dashboard.

  • @devinlin325
    @devinlin325 3 года назад

    Amazing implement for this topic!

  • @krishnasumanth1493
    @krishnasumanth1493 3 года назад

    Hi Ekta and Mukesh, this is one good excellent start up for python selenium automation. Would please advise how to implement Page Object Model as well in Python.

  • @RX-Ani
    @RX-Ani 3 года назад +1

    Hi Ekta/Mukesh, Thanks for this video. Here Jenkins is in local machine. How to configure if jenkins is in remote machine? Do we need to install all python packages in the jenkin server? how do we know whatt workspace path we should add while creating a job in remote jenkins.. Please make a video on this..

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Anil, You can create Jenkins Node (it could be EC2 instance, VM or any cloud instance) and this node you can configure as per your need. You can configure your jenkins job to run on specific node.

  • @dhruvbansal9416
    @dhruvbansal9416 4 года назад

    Thanks Ekta, great video. One Help:Any guide to host this reports on server and store in DB to maintain execution records.

  • @himanshusethi1
    @himanshusethi1 4 года назад +2

    Hi, how can I run the selenium python code from Github with the Jenkins on AWS EC2?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Hey Himanshu, Once you have your instance ready you can setup Selenium grid and then then you can run your automated test here is the video
      ruclips.net/video/6nq1dOiTdC8/видео.html

  • @shuvendratripathy2483
    @shuvendratripathy2483 3 года назад

    Hi Ekta....I want to join your live sessions training of selenium python..So how can I join please let me know

  • @deepikaramasamy5042
    @deepikaramasamy5042 4 года назад

    Hi Mukesh,
    How do you execute PyTest in Jenkins via Git Repo, can you help to guide me. I'm unable to find the solution to execute pyTest with Selenium in Jenkins via Git Repo.
    Much appreciated for your response.

  • @akashbhatt3223
    @akashbhatt3223 3 года назад

    Thanks a lot for this video.
    Recently I was trying to replicate the same in private network,once test cases gets executed successful while generating report allure report throws null pointer exception.Could you please help me to find out the root cause of the problem? Thanks in advance

  • @karthikyadav2869
    @karthikyadav2869 3 года назад

    Hi Ekta/Mukesh, Thanks for this video. When i am trying this, getting the error as "selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary" in Jenkins. But it is working fine through CMD line. Could you please help me on this issue.

  • @arkaimps
    @arkaimps 4 года назад

    Thanks for adding the Jenkins flavor in it. That's more complex part.
    A quick question in a part where I am struggling, when I am trying to create a BaseTest class and defining my fixture over there and trying to call parent BaseTest class in all other testcases, it's not working.
    If there any sample example, can you please share?

    • @EktasSeleniumSolutions
      @EktasSeleniumSolutions 4 года назад

      Sure Nag. Will come up with video on this

    • @arkaimps
      @arkaimps 4 года назад

      @@EktasSeleniumSolutions thanks Ekta. I have figured it out. I was doing something wrong initially in declaring the fixture scope. Sorry for bothering you on that.
      But still struggling to run the script from Git+Jenkins. And not able to find plugin for Pytest in Jenkins. Please help if you can share something where script is coming from SVN and then running/building scripts.

  • @Zack-ni3vz
    @Zack-ni3vz 3 года назад

    what are the command to put in execute shell if your using macbook? also there so 'call' command for the mac terminal. Please help

  • @travel2experience212
    @travel2experience212 3 года назад +1

    Hello Ekta/Mukesh, at 32:45 to 32:55, does Pytest supports listeners just as TestNg ?

    • @Mukeshotwani
      @Mukeshotwani  3 года назад +1

      yes just search for pytest listeners 😇 you will get module for this too.

    • @travel2experience212
      @travel2experience212 3 года назад

      @@Mukeshotwani Hey, thank you for the quick reply. I could find pytest-listeners package but not much information available on using it over the internet. Would you mind pointing me to some resource you are aware of to help me understand pytest-listeners ?

  • @sonalimathur9311
    @sonalimathur9311 4 года назад

    Hi Mukesh is there a way to automate chrome Authenticator extension

  • @RahulRana-sf5nb
    @RahulRana-sf5nb 4 года назад +1

    Hi, can we implement POM with allure? how to pass allure node from one module to another?

    • @Mukeshotwani
      @Mukeshotwani  4 года назад +1

      Yes we can Rahul, will try to cover this scenario soon.

    • @RahulRana-sf5nb
      @RahulRana-sf5nb 4 года назад

      Thanks Mukesh, I’d really appreciate👍🏼
      In our framework we have implemented POM, and the module structure is as follows: test script has 4 layers > driver script ( where we write the test )
      > business rules ( function library, methods have assertions which will require allure reporting for log and screenshot )
      > page object
      > base class for page object ( this contains all ui interation methods, set text, select etc. these wrapper methds automatically logs steps to report. Attach screenshot on exception)
      I’d greatly appreciate if you could use above structure and implement allure.
      Regards,
      Rahul Rana

  • @lal1981
    @lal1981 2 года назад

    '.venv' is not recognized as an internal or external command,
    operable program or batch file. Can any one help me with this? I get this in Jenkis slave machine

  • @kavyav6754
    @kavyav6754 2 года назад

    Thanks for the video.. I am facing an issue working with pytest and markers.
    When I run same commands from command prompt it works fine but error's out in Jenkins.
    cmd tried: .\venv\Scripts\activate && pytest -m test
    Error :
    Build step 'Execute Windows batch command' marked build as failure
    Finished: FAILURE

    • @Holasticlogger
      @Holasticlogger 2 года назад

      Hi Ma'am, Were you able to fix this issue ?? I am getting the same

  • @sabataranum5128
    @sabataranum5128 2 года назад +1

    Hi Can you please upload a video to integrate Selenium python scripts with Testcases in Azure DevOps

    • @Mukeshotwani
      @Mukeshotwani  2 года назад

      Sure Saba I will do that soon.

    • @sabataranum5128
      @sabataranum5128 2 года назад

      @@Mukeshotwani your doing a great job I have started learning python selenium myself and your videos are of great help, Thanks also Thanks for your reply

  • @hariram-uu2qx
    @hariram-uu2qx 4 года назад

    Not very good in java , still can I see this video and learn python testing ?

  • @mellowbeatz93
    @mellowbeatz93 3 года назад +1

    13:25 cant find pytest somehow on cmd...

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi , you can follow complete video for PyTest ruclips.net/video/snDSB9b8v_E/видео.html

    • @kevinlao3690
      @kevinlao3690 3 года назад

      You probably have to do a couple of checks:
      - did you install pytest? Globally or within your virtual environment?
      - if you run 'pytest --version' does it show an error or something like 'pytest 6.something something'
      - if you cannot run 'pytest' alone, can you try running 'python -m pytest' instead and see if that works