First Test Case using Robot Framework in PyCharm IDE.

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • First Test Case using Robot Framework in PyCharm IDE.
    In this video we have discussed and explained how to write your first test case using Robot Framework in PyCharm IDE and explained in detail about all the sections of a Robot File.
    Video Links:-
    * framework tutorial
    * robot framework with python
    * robot framework beginner tutorial
    * robot framework pycharm
    * robot framework tutorial for beginners
    * robot framework step by step
    * how to use robot framework
    * python robot framework tutorial
    * robot framework selenium tutorial
    * what is robot framework
    * python robot framework
    * robot framework selenium
    * robot framework for beginner
    * how to install robot frameworkrobot framework in python
    * n robot framework
    * robot framework tutorial
    * robot framework with python
    * robot framework beginner tutorial
    * robot framework pycharm
    * robot framework tutorial for beginners
    robot framework
    robot framework with python
    robot framework tutorial
    robot framework beginner tutorial 1
    web automation using robot frameworkrobot framework
    robot framework tutorial
    robot framework with python
    first test case in robot framework
    how to use robot framework
    robot framework in python
    robot framework test cases example
    python robot framework
    robot framework beginner tutorial
    robot framework step by step
    robot framework tutorial using pycharm
    robot framework pycharm
    robot framework tutorial for beginners
    robot framework api testing
    api testing robot framework
    api testing with robot framework
    robot framework api automation
    api automation robot framework
    api automation testing robot framework
    api automation using robot framework
    api robot framework
    api testing automation using robot framework
    api testing in robot framework
    api testing using robot framework tutorial
    how to automate captcha in robot framework
    how to automate desktop application using robot framework
    robot framework for api testing
    robot framework first test case
    robot framework example test case python
    robot framework call test case from another test case
    robot framework for api automation
    robot framework api testing tutorial
    robot framework api testing python
    robot framework api test example
    rest robot framework
    robot framework api example
    rest assured api automation framework github
    rest api testing using robot framework requests library
    rest api testing using robot framework
    rest api robot framework
    rest api automation using robot framework
    pycharm robot framework tutorial
    pycharm robot framework
    how to write robot framework test cases
    how to write good test cases robot framework
    how to write data in excel sheet using robot framework
    api testing using robot framework
    web testing using robot framework
    • Introduction to Robot Framework: • Introduction to Robot ...
    • Installing Robot Framework: • Installing Robot Frame...
    Required Downloads:-
    Chrome Driver Link: chromedriver.c...
    Required Code:
    ** Settings **
    Library SeleniumLibrary
    ** Test Cases **
    Google
    Open Browser www.google.com/ chrome
    Maximize Browser Window
    Sleep 10
    Close Browser
    In order to cater to the needs of our viewers we have dedicated playlists on programming languages such as Python, Java, C Programming, Html & CSS, Robot Framework, and much more.
    So stay tuned for much more content to come in this playlist...All the best from the entire Coders Arcade Team.
    Thank You And Happy Learning.
    👉Check Out Our Other Playlist As well:-
    💻HTML & CSS for CBSE: • Playlist
    💻C programming For Problem Solving (VTU):
    • C Programming Tutorial...
    💻Java Tutorial For Beginners: • Java Tutorial For Begi...
    💻Python Tutorial For Beginners: • Python Course (English)
    💻Application Development Using Python (VTU): • Application Developmen...
    💻Robot Framework Tutorials using Python:
    • Robot Framework Using ...
    💻Git Tutorials • Git Tutorial for Begin...
    💻 SQL Tutorial For Beginners: • SQL Tutorial for Begin...
    💻Microsoft Office Utilities || Microsoft Excel: • Microsoft Office Utili...
    💻Interview Questions For Freshers || • Interview Questions Fo...
    📕 Want To Learn From us:
    Certification Courses: forms.gle/9MjJ...
    Discord: / discord
    Blog on Medium: / codersarcade
    Facebook: / coders.arcade
    Instagram: / codersarcade
    👍 Subscribe for more Amazing tutorials like this: / @codersarcade
    #robotframework #selenium #automation

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

  • @bubblecheeks1352
    @bubblecheeks1352 2 года назад +3

    This is what begineers want.
    Great way to explain. Seen quite a number fo videos where the explanation is way off and was searching for a good one.
    This video series is done beautiful...it is slow, crisp and simple and i can understand it better.
    Thanks for the effort.

  • @faridattal5839
    @faridattal5839 2 года назад +2

    i wont to say i buy a courses on udemy unfortunatly couldnt even acheive this step missing informations and out dat links so i started searching ,yor video the way you explain very impressive i spent half day searching whats wrong couldnt find it thank you you mad my day

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

      You are welcome 😊. We are happy that we could help you ☺️

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

      If you really liked the content, please subscribe to our channel and also share it with your friends and family. ❤️

  • @becky4417
    @becky4417 2 года назад +5

    Wonderful video!! Thank you so much. You taught everything from the basic, I was able to get the exact results. Thanks for making robot frame work more interesting!

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

    This series of videos have helped me complete a unit in my cyber security course. Mate you are a legend! thanks soooooo much.

  • @sidb2023
    @sidb2023 2 года назад +2

    Excellent Video. Your video solved many problems I was facing. Thanks

  • @gabo4632
    @gabo4632 Год назад +2

    Nice tutorial, man! I hit subscribe. Keep it up. Thank you for tutorials/instructions. Truly meant for beginners :)

  • @Oryx_777
    @Oryx_777 7 месяцев назад +1

    Thanks helpfull tutorial

  • @nehashrivastava9710
    @nehashrivastava9710 Год назад +1

    It is really helpful for beginners..

  • @ChambaTheHiddenTreasure
    @ChambaTheHiddenTreasure Год назад +1

    very good you explained very nice

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

    Very very nice vedios sir

  • @RamaKrishna-mu9qi
    @RamaKrishna-mu9qi Год назад +1

    while writing test cases, my Pycharm IDE shows an error like IDE Internal Error occured. It does not show keywords automatically at the time writing test cases . how can i resolve this issue.

  • @user-bv3jl4hx7f
    @user-bv3jl4hx7f Год назад

    Can you please make a video on how to pass chrome options / desired capabilities using robot framework. Specifically to hide the infobar or how to pass excludeSwitches

  • @RaviSingh-ix8us
    @RaviSingh-ix8us 3 года назад +1

    Thank you sir

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

    Great video

  • @donaulahannan9400
    @donaulahannan9400 Год назад +1

    cant thank you enough brov

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

    I have installed all the packages and plugins but I'm seeing an error in the terminal that path\activate.ps1 cannot be loaded because running scripts is disabled on this system. How can I resolve this error.

  • @vijaykuruba6556
    @vijaykuruba6556 5 месяцев назад

    sir I am facing one problem in pycharm my code not executing it's showing object module is not callable. please tell me how reach out you sir please I need to learn pycharm

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

    Thanks alot

  • @bhagyashribarot9367
    @bhagyashribarot9367 Год назад +1

    Hii Under settings in pycharm i am not getting libraries and selenium libraries can you please help me?

    • @CodersArcade
      @CodersArcade  Год назад

      Under Settings:
      Go to your Project:
      Example:
      MyProject ->
      Click on Python Interpreter
      Then you need to click on the "+" button (plus) and in the Search Bar 🔎 just type the name of the library that you are searching.
      It might not have been installed.
      Search with the proper keywords for selenium and selenium-library and click on the Install Package option. The libraries will be installed successfully.

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

    Hi sir
    I am not getting critical test i am getting only test in terminal and in both report and log files
    And its showing some error says
    ERROR : device _event_log_imp.cc(214)
    And
    FIDO: webauthn_api.cc : 53 Windows WebAuthn API failed to load
    Please help me what i need to do come out from this error

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

    hi this is best for beginers to learn.am trying to write my test case and run but test was faild it's showing open browser keyword is not found

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

      Make sure the Chrome version and the ChromeDriver version are same. Otherwise it won't work.

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

      You have to include a line in your *** Settings *** section that says :
      Library | SeleniumLibrary
      and you might also need to run
      pip install --upgrade robotframework-seleniumlibrary
      This will also update your selenium library.
      Please make these changes and run your test case again.

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

      @@CodersArcade thank you

  • @Sumit11005975
    @Sumit11005975 8 месяцев назад

    What is the keyword to minimize the browser window?

  • @anantha9945
    @anantha9945 Год назад +1

    Hi sir, I have one doubt sir in am writting first test case sir having error that is ps1 cannot be loaded because running scripts is disabled on this system . for information, see about _execution _policies at some link and + category info and fully qualified error id . sir please tell me how to over come this error .

    • @CodersArcade
      @CodersArcade  Год назад

      In Windows 10 system, the Execution Policy is set to restricted by default. This means that PowerShell cannot execute any script. Please follow the steps given:
      1. Open the Start Menu on Windows and search for powershell and right-click on it. Click on “run as administrator”.
      2. To fix the error, you need to change the PowerShell execution policy to remotesigned. This will allow you to run scripts that are on your local computer unsigned, and also remote scripts(from the internet) which have been signed.
      Type the following command in the PowerShell admin window to change the execution policy:
      set-executionpolicy remotesigned
      3. You will be prompted to accept the change, type A(Yes to all), and press ENTER on your keyboard to allow the change.
      4. Close the PowerShell admin window, and go back to the PowerShell Window where you got the error. Run the command that triggered the error again. Default is: venv\Scripts\activate.
      If you look at the following screenshot, you will see that am not getting the error anymore and the virtual environment has been activated:
      I hope your error gets fixed with the given solution. Let me know in the comments if you have any questions. Thank you for your query.

    • @anantha9945
      @anantha9945 Год назад +1

      Window 11 sir my system

    • @anantha9945
      @anantha9945 Год назад +1

      @@CodersArcade sir my system is windows 11 sir pls help sir

    • @CodersArcade
      @CodersArcade  Год назад

      Follow the same procedure in PowerShell

    • @anantha9945
      @anantha9945 Год назад +1

      Thanks a lot sir

  • @chideramoses6089
    @chideramoses6089 9 месяцев назад

    Sir after running my code on the terminal at 18:00 my automated browser only opens for 3secs. And yes I installed the web browser driver that’s compatible for my browser. Please I need assistance.

    • @macwansteven69
      @macwansteven69 Месяц назад

      To stop auto close of browser use below tric: open browser url browser options=add_experiment_option("detach", True

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

    In Pycharm your not getting Suggestions bro? Any help

  • @medfathallah419
    @medfathallah419 6 месяцев назад

    the robot framework plugin brings a lot of errors, even so i downloaded ancient versions of pycharm, is there any solution or i should change the editor to VS

    • @CodersArcade
      @CodersArcade  6 месяцев назад

      If you're facing issues with the Robot Framework plugin in PyCharm, there are a few steps you can take to troubleshoot and resolve the problems:
      1. Update PyCharm and Plugin:
      Make sure you are using the latest version of PyCharm as well as the Robot Framework plugin. Plugin developers often release updates to address compatibility issues with newer versions of the IDE.
      2. Check Python Interpreter:
      Ensure that the Python interpreter configured in your PyCharm project is compatible with the version required by the Robot Framework and its dependencies. You can check and configure the Python interpreter under `File > Settings > Project > Project Interpreter` in PyCharm.
      3. Check Plugin Settings:
      Go to `File > Settings > Languages & Frameworks > Robot Framework` and review the settings. Make sure the paths and configurations are correct.
      4. Check Project Configuration:
      Verify that your Robot Framework project is set up correctly in PyCharm. Ensure that the test suite or test cases are properly organized and that the necessary Robot Framework files are recognized by the IDE.
      5. Check for Error Messages:
      Look for error messages in the PyCharm console or logs. They might provide insights into what is causing the issues. Fixing those issues can resolve the errors you are facing.
      6. Try a Different Robot Framework Plugin Version:
      If the latest version of the plugin is causing issues, consider trying an older version that might be more compatible with your PyCharm version. You can find older versions of plugins on the JetBrains Plugin Repository website.
      7. Consider Using Another IDE:
      If you are still facing issues, you might consider trying a different IDE, such as Visual Studio Code (VS Code) with the Robot Framework Language Server (Robocorp Code) extension. Some developers find success with different IDEs, so it's worth exploring alternatives.
      8. Check for Community Support:
      Look for discussions or forums related to the Robot Framework plugin for PyCharm. Other users might have faced similar issues, and you can find solutions or workarounds in those communities.
      If, after trying these steps, you still encounter problems, switching to a different IDE like Visual Studio Code might be a viable option, especially if it provides better support for the Robot Framework in your specific scenario. Keep in mind that the development landscape is constantly evolving, and tools may receive updates that improve compatibility over time.

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

    Thanks for the vedio. please help me to solve this error "Fatal error in launcher: Unable to create process using '"C:\Users\HP\AppData\Local\Programs\Python\Python310\python.exe" "C:\Users\HP\AppData\Local\Programs\Python\Python310\Scripts
    obot.exe" Libraries\GoogleSearch.robot': The system cannot find the file specified."

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

    Sir, whenever I am creating a .robot file, it is not getting recognised by pycharm. I have checked many times the intellibot plugin (the selenium one) but still no luck. can you please help me here to find the root cause of it?

    • @CodersArcade
      @CodersArcade  3 года назад +2

      Have you installed the robotframework packages properly in the python interpreter?
      You need to go to Files > Settings > Projects:(name of your project here) > python interpreter....then check for these 3 packages 1. Selenium, 2. robotframework, 3. robotframework-seleniumlibrary...if these three are not present or any one of these packages are not installed then u need to install these packages by clicking onto the '+' "Plus Symbol" at the right hand side of the table, then you will be able to create robot files in pycharm.

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

      @@CodersArcade yes, I have installed all the mentioned packages correctly as suggested but still .robot file is not getting recognised by pycharm. I am thinking to uninstall everything(pycharm and Python) and to do from scratch. What do you suggest?

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

      if your normal python programs are working fine then no need to uninstall python and pycharm, you can just try reinstalling the robot framework by first uninstalling the robot framework by typing pip uninstall robotframework in your cmd then try reinstalling the robot framework...again and this time check for the proper installation of the robotframework, you can refer to one of our videos ruclips.net/video/yaa6ZsMNGYg/видео.html

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

      @@sumitchauhan9446 I had the same issue days ago. Someone suggested to uninstall plugin and install from disk. It worked for me. Hope it helps!

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

      @@free3595 you mean to uninstall the intellibot plugin? Or pycharm itself?

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

    Is there any video on how to test a login page

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

      Please can someone answer me

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

      ruclips.net/video/Hfm4kCjjpiI/видео.html
      This video is for validation of input box in the login page in Flipkart. Please go through this.
      If you have any questions please ask. Thanks 😊

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

      I saw that and I did the test but what I need is that I have a hospital medical system and I want to test the login validation. For example if I have to login with my user name which is only numeric and and my password which is alfanumeric i should login unless I enter wrong password or username than it will not work

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

      Ok. Will try uploading a video on that.

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

      @@CodersArcade thank you very much it is really needed for me because I'm working on big system testing and the first thing needed is testing login page

  • @medidationsisbliss
    @medidationsisbliss 3 месяца назад +1

    Sir after doing the test cases my automated google is opening but it is getting closed within 2 sec what to do?

    • @CodersArcade
      @CodersArcade  Месяц назад

      If your automated Google test is running but the browser closes within 2 seconds, it could be due to several reasons. Here are some common issues and troubleshooting steps to address this problem:
      1. Check for Errors in the Test Case
      Ensure that your test case doesn’t have errors causing the browser to close unexpectedly. Review the logs to see if there are any error messages.
      2. Add a Delay
      Sometimes, the test script might be completing too quickly before the browser has a chance to fully open. You can add a delay or wait explicitly to ensure the browser stays open long enough for the test to run:
      *** Test Cases ***
      Open Google And Wait
      Open Browser www.google.com chrome
      Sleep 10s # Waits for 10 seconds to keep the browser open
      # Perform other actions
      Close Browser
      3. Check Browser and Driver Compatibility
      Ensure that the browser version and the WebDriver version (e.g., ChromeDriver for Chrome) are compatible. Mismatched versions can sometimes cause issues where the browser opens and closes immediately.
      4. Verify WebDriver Path
      Make sure that the WebDriver executable is in your PATH or you are providing the correct path to it. For example, for ChromeDriver:
      *** Settings ***
      Library SeleniumLibrary
      *** Variables ***
      ${CHROME_DRIVER_PATH} /path/to/chromedriver
      *** Test Cases ***
      Open Google
      Open Browser www.google.com chrome executable_path=${CHROME_DRIVER_PATH}
      # Perform other actions
      Close Browser
      5. **Check WebDriver Version
      Ensure that your WebDriver is updated to the latest version compatible with your browser. Sometimes, older versions of WebDriver can cause issues.
      6. Inspect Browser and WebDriver Logs
      Check both the browser and WebDriver logs for any error messages or clues. You can usually find WebDriver logs in the terminal or command prompt where you executed the test.
      7. Run the Test Manually
      Try running the WebDriver command manually in a separate script or console to see if it behaves the same way. For example, you can create a simple Python script to open Google:
      from selenium import webdriver
      driver = webdriver.Chrome()
      driver.get("www.google.com")
      input("Press Enter to close the browser...")
      driver.quit()
      This script will help determine if the issue is with the WebDriver setup or the Robot Framework test case.
      8. Check for Robot Framework Issues
      Ensure that your Robot Framework and SeleniumLibrary are up-to-date. Sometimes, bugs in older versions can cause unexpected behavior.
      pip install --upgrade robotframework seleniumlibrary
      By following these steps, you should be able to diagnose why your automated browser is closing too quickly and address the issue accordingly.

    • @medidationsisbliss
      @medidationsisbliss Месяц назад

      @@CodersArcade thankyou sir
      I tried everything
      In the end i changed the browser to mozilla firefox and it worked alright🙂

  • @praveen6565
    @praveen6565 Год назад

    I am getting this below ERROR ANY ONE PLZ HELP ASAP : )
    robot Examples\my_first.robot
    robot : The term 'robot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
    was included, verify that the path is correct and try again.
    At line:1 char:1
    + robot Examples\my_first.robot
    + ~~~~~
    + CategoryInfo : ObjectNotFound: (robot:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    • @CodersArcade
      @CodersArcade  Год назад

      Intellibot plugin needs to be installed. Please check this video:
      ruclips.net/video/yaa6ZsMNGYg/видео.html

    • @hanumanthkumar1902
      @hanumanthkumar1902 Год назад

      hii bro
      did your did your issue got resolved??
      plz help me ,I am facing the same issue