RobotFramework
Read Data from Excel (openpyxl) import openpyxl workbook = openpyxl.load_workbook("./TestKeyword.xlsx") def fetch_number_of_rows(sheetname): sheet = workbook[sheetname] return sheet.max_row def fetch_cell_data(sheetname, rownum, cellnum): …
Install chrome plugin : robot corder chrome.google.com It seems similar with Selenium IDE. Behavior check Record ============================================================================== Testcases =====================================…
Given-When-Then Given : Prerequisite When : Check this part Then : Confirm the result en.wikipedia.org github.com
github.com github.com
Prerequisite pip install openpyxl How to use the lib import openpyxl # Load workbook workbook = openpyxl.load_workbook("testdata.xlsx") print(workbook.sheetnames) print("Active sheet= " + workbook.active.title) sheet = workbook['Sheet1'] p…
Without argument and return value Flow to load Robot file -> Resource File -> Python Script python import os def create_folder() : os.mkdir("test") print(str(os.path)) def create_sub_folder() : os.mkdir("test/test_sub") Resource file Creat…
Tags Tags at test case level Second Tag Test [Tags] Smoke Sanity Setup Tests Teardown Tests -> Able to run tests filtering with the tags. robot -i {tagname} {testsuite} github.com Default Tags *** Settings *** Library SeleniumLibrary Defau…
Set up and Teardown Teardown Behavior Check [Setup] Setup Start Browser and Maximize // keyword [Teardown] Teardown Close Browser Window This can be adapted at the suite level *** Settings *** Library SeleniumLibrary Test Timeout 30s Test …
Create new user defined keywords using resource Of course, we can create the keyword using python script but also create it with standard keywords Keyword *** Settings *** Library SeleniumLibrary *** Variables *** ${URL} https://www.rakute…
Basic syntax on Robot file github.com Selenium Speed / Timeout / Implicit Wait Set Selenium Speed 1 seconds Can set the speed like this but when we use this function? just when we show it as demo? github.com Selenium Timeout github.com Imp…
Robot framework Advantages Install Robot Framework Framework Selenium library Browser driver Create test case Run the tests Github Robot framework Generic test automation framework for acceptance testing Keyword Driven (standard, user defi…