Part 19- Data Driven Testing Using Excel & CSV Files in Robot Framework | Selenium with Python

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

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

  • @fashionate6527
    @fashionate6527 9 месяцев назад +1

    Thanks a lot really helpful lectures

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

    Thanks for your videos on ROBOT FRAMEWORK, i reallyAppreciate your work, keep up the same.

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

    How do place the excel file in python? Like how to put that logindata file under Testdata? Please Reply

  • @someshugar3458
    @someshugar3458 5 лет назад +1

    Thank you
    Very useful I was looking for this from some many days

    • @Shrikalase
      @Shrikalase 5 лет назад

      Very well explained .. It helps me alot !!
      Just one query .. how to prioritize test cases ? Like - we always do in TestNG or Junit.

  • @panuwatm.2981
    @panuwatm.2981 Год назад +1

    Where did you get the TestData file from please help me

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

    Thanks a lot for the video. Very useful.. I have a question. If we have multiple test cases in single robot file, how can we call the test data with respect to each test case from excel or csv?

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

      Same question i have. No one is explaining that real scenario :(

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

    This is quite impressive. And I have a question though, how can you run this having a test case -t as a parameter?

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

    Hi Pavan, do u probably know, if is it possible the DataDriver Library in Robot Framework to have more than 1 sheet_names?. I have 1 xlsx file, but i separate the input for different screen into 2 sheets within the same excel file. Do u have any idea how to retrieved data from 2 different sheet within 1 excel file? Or can use other Library?
    Thanks in advance.

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

    Thanks Pavan. Lots of useful information.
    Can we use the data in different worksheets in the same excel within the same test case / script

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

      you can do that by the way change the sheet_name as below:
      *** Settings ***
      Library DataDriver file=my_data_source.xlsx sheet_name=2nd Sheet

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

    Hi Sir,
    after using datadriver, do we able to use tagging as well?
    filtering test case with tag
    thanks

  • @sureshbabu-ld2kg
    @sureshbabu-ld2kg Год назад

    Hi,
    how to read the excel file using single robotfile itself ,here u used loginresouce.robot as a login and DDT2 file used to call the loginresouce using RESOURCE key word instead of that how to used in single robot file itself

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

    this is interesting!!! I hope you have a tutorial on how to web scraping using robot framework.

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

    hi Sir, is it possible to make one video to call the keywords and test data from excel and update the results(Pass/Fail) the same in Excel as part of the DDT Testing in Robot Framework.

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

    Hello Sir your tutorial is really helpful. Can you please upload a video about windows application automation using the Robot framework in Pycharm

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

    How can we save dropdown element data into CSV/excel and call it in our testcase?

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

    Can we run the specific data from Excel?
    Means I have multiple rows in Excel each row represent as different test case and I have similar column names in Excel so how can we differenciate the rows??

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

    Hi sir, could you please explain how to run testes with different keyword using data driven with excel

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

    Can i call multiple sheets from one single xlsx?

  • @cryptocurrencyexpertbychoi1469
    @cryptocurrencyexpertbychoi1469 5 лет назад

    You are doing great work man 👍

    • @sdetpavan
      @sdetpavan  5 лет назад

      Thank you. Please share my videos to your friends and colleagues.

    • @cryptocurrencyexpertbychoi1469
      @cryptocurrencyexpertbychoi1469 5 лет назад

      @@sdetpavan Sure, I'll do it defiantly. And you are doing great work for those peoples who have less knowledge in coding. Kindly keep it up.
      And if possible kindly put vedio of appium with selenium 🙏🙏🙏

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

      @@sdetpavan done

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

    Hi Mr Pavan Maher
    how we use datadriver on VS Code..??

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

    Thanks 😁

  • @LindokuhleNgobese-vo2vd
    @LindokuhleNgobese-vo2vd Год назад +1

    im getting [ ERROR ] Calling method '_start_suite' of listener 'DataDriver' failed: BadZipFile: File is not a zip file when following these steps. Am I missing something?

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

    hye sir, I cant print the statement after ' using ' keyword in this line. But the test working fine:
    LoginTestWithCSV using ${username} and ${password}
    Btw, im getting warning said : "Undefined keyword" options
    Is there any settings i need to apply? Can u help me here TQ.

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

      For variable ${username} not found.. the syntax should be "TestCaseName[space]using[space]{username}[space]and [space]${password}" e.g : LoginTestWithExcel using ${username} and ${password}

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

    Now it ask pip install -U robotframework-datadriver[XLS]
    it will install pandas and opeyxl
    then Excel will support

  • @Himu421
    @Himu421 10 месяцев назад

    Hello guys I’m implementing a data driven framework using excel file but I’m gettin error ‘variable ${username} not found. I did add data driver package and ran pip install robotframework-excellib . I did proper spacing. Can one someone please help ? Spending whole day but still couldn’t make this work

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

    Hi Sir,
    How to get excel sheet row count?
    Thank you in advanced. :-)

  • @AK-ex5md
    @AK-ex5md Год назад

    Pls tell me Where can we find the scripts?

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

    Hi Sir,
    I have installed Robotframework, using Python2.7 on a linux machine. I have try to re-execute the failed test cases using this command 'robot --prerunmodifier DataDriver.rerunfailed:output.xml --output rerun.xml'. I am getting the following error,
    Importing model modifier 'DataDriver.rerunfailed' failed: Module 'DataDriver' does not contain 'rerunfailed'.

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

    If we want work with second sheet how to declare?

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

    How to write data to excel file post running the script?

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

    How to create .robot files from excel for each testcase?

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

    How it is run a test case without having any keywords?

  • @ibrahimahdadou6494
    @ibrahimahdadou6494 5 лет назад

    Hi please help me ! i'm just a beginner i'm just finished cours "python selenium" i did my first script "enter my information in web site" but i use send.key for one person
    so i want to use this script for a multplie data more than person with doc.txt !! just give me how i can do that(use Pandas or Robot Framework or ......) and i will find it

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

    Hello Sir
    Calling method '_start_suite' of listener 'DataDriver' failed: ImportError: Requirements (pandas, numpy) for XLS support are not installed.
    can you please help

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

      Any solution for this issue @Ishang Baniya? Even i am also seeing the same

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

      @@jaawahar Not yet.

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

      I had the same problem, I uninstalled pandas and installed the version 0.25.1 and my issue is fixed :
      pip uninstall pandas
      pip install pandas==0.25.1

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

      @@riadhabid605 I am getting issues installing pandas V 0.25.1
      error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": visualstudio.microsoft.com/downloads/

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

      You can try run "py -m pip install -U robotframework-datadriver[XLS]"
      Or go to Setting/Project Interpreter and install some library: Panda, Pandas, Numpy, xlrd
      Both this is working with me.

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

    How to import these excel files in folder

  • @ankitaverma9440
    @ankitaverma9440 5 лет назад

    Hi,
    I am using eclipse and followed the same steps but I am getting error in test case section as "Test case 'loginwithexcel' contains no keywords to execute". Can you please help with this

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

      pip install -U robotframework-datadriver[XLS]

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

      After some RnD finally got the solution for Eclipse. Below is the syntax for Test cases tag for excel driven testing -
      *** Test Cases ***
      LoginTestWithExcel using ${username} and ${password} Default UserData

  • @pandudamera7211
    @pandudamera7211 5 лет назад

    Could you please share me series of reboot frame work in your videos link sir?

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

    Getting this error 'ModuleNotFoundError: No module named 'DataDriver '. Can anyone please help?

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

    I am getting error :
    [ ERROR ] Calling method '_start_suite' of listener 'DataDriver' failed: XLRDError: Unsupported format, or corrupt file: Expected BOF
    record; found b'${userna'
    Along with Variable '${username}' not found.

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

      For variable ${username} not found.. the syntax should be "TestCaseName[space]using[space]{username}[space]and [space]${password}" e.g : LoginTestWithExcel using ${username} and ${password}

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

      @@mohamednaveedh1160 issue soled but now it showing --> Test case contains no keywords.

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

      @@kajaltumma9302 Could be issue with "robotframework-datadriver" , for xls and xlsx file support try installing --> "pip install --upgrade robotframework-datadriver[XLS]"

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

      @@mohamednaveedh1160 No issue with data driver, pip install --upgrade robotframework-datadriver[XLS]... getting the same issue --> Test case contains no keywords.
      Thanks for reply

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

      @@kajaltumma9302 Hi did you resolve your error... I am also getting same error?

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

    import this with 'pip install -U robotframework-datadriver[XLS]' if you are getting import error

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

      thank you, it worked and I think it removes the one that is installed using python interpreter in this tutorial.

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

    Doing Test Credentials for ${username} and ${password} | FAIL |
    Variable '${username}' not found.

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

      Any solution found ?

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

      same problem :/

    • @ThuyBui-mt1wu
      @ThuyBui-mt1wu Год назад

      ​@@anasmamlouk hey, have you resolved that? I have the same

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

    "[ ERROR ] Calling method '_start_suite' of listener 'DataDriver' failed: ValueError: Unknown engine: openpyxl" getting this error nowhere to find how to resolve this

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

      pandas, openpyxl install these packages using pip and also install them in pycharm

  • @SakshiSharma-gk8jr
    @SakshiSharma-gk8jr 4 года назад

    Guys, I am getting error as Variable '${username}' not found. (Along with '_start_suite' of listener 'DataDriver' failed: ). Can anyone help here

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

      Try this: Library DataDriver file=TestData/Mappe1.xlsx with "file:".

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

      For variable ${username} not found.. the syntax should be "TestCaseName[space]using[space]{username}[space]and [space]${password}" e.g : LoginTestWithExcel using ${username} and ${password}

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

    "Calling method 'start_suite' of listener 'ExcelDataDriver' failed: FileNotFoundError: "can any1 help with this error , my excel script is failing due to it

    • @Sagar-mv3jq
      @Sagar-mv3jq 4 года назад

      in video 0.43 check screen and install all libraries and try .

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

    how to add xlsx file

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

      Hi Pranav,
      Just right side of the project, you'd see your project's file location.
      Go to that location and open the directory where you want this xlsx file. In this tutorial the directory name is TestData.
      Now, open the Pycharm and click the TestData directory and you'd see the XLSX file in PyCharm.
      Let me know if it's successful? Thanks!

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

    Hi am geetting this error,[ WARN ] Multiple tests with name ' LoginTestWithExcel using ${username} and ${password}' executed in suite 'DDTcsv'.
    LoginTestWithExcel using ${username} and ${password} | FAIL |
    Variable '${username}' not found.

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

    how to create excel login data file
    and csv file