Test
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…
This content is from 'edureka' and I'm just taking a memo referring to it. Top 50 Software Testing Interview Questions To Know In 2021 | Edureka Senior Software QA Automation Engineer Job Summary : Plan, design, execute and report software…
with plugin Just add '-Dsurefire.rerunFailingTestsCount=2' maven.apache.org with code import org.junit.rules.TestRule; import org.junit.runner.Description; import org.junit.runners.model.Statement; public class RetryRule implements TestRul…
前提 JMHは、Mercurialリポジトリを使うため、事前にそれをインストールする必要があります。 ソースコードダウンロード Mercurial SCM 上記のURLから、自分のOSに合うものをダウンロードします。 Download JMH hg clone http://hg.openjdk.java.net/code-to…
FindByアノテーションを使うことで、こんな長いコードが public void setUserName(String username) { driver.findElement(By.id("MainContent_txtUserName")).sendKeys(username); } public void setPassword(String password) { driver.findElement(By.id(…
例えば、こういうふうに複数のウィンドウがあるとしたら、 操作のためにポインターを移動させる必要がある。 こういう場合は、現在開いているウィンドウ情報を持ってきて(リスト)、 その中でポインターをSwitchさせたらオッケー Code // Switch the window…
ロードに時間がかかる時とかの解決策ってことかな。 //driver.findElement(By.xpath("//*[@id=\"40553\"]/div[2]/div/a")).click(); driver.findElement(By.xpath("//*[@id=\"resultsContainer\"]/section/article[" + searchResult + "]/div[2]/div/a")).cl…
問題 要素がnot visibleになっていて、クリック動作が動かなかった→テスト失敗 どこが問題なのか CSS選択ができない XPathも使えない 原因 単に当たる要素が見える化されてないから。 解決策 クリックをする前に、コードレベルでJSとして値をVisibleに変換す…
データ扱いが簡単って言われてるけど、まだどこが簡単なのかわからん。 ちなみにJUnitでは、パラメータを挿入するとき、以下の様にする。 // This annotated method is designed to pass parameters into the class via constructor @Parameters public stat…
今までは、JUnitと全く同じなんですけど、 何が違うのでしょうかね。
タスク解決のために、webdriverの勉強をし始めます。 Automation Testing Building a test framework Manage regression testing and functional testing Continuous integration / development Behavior-Driven Development with Cucumber Selenium Suite T…
テスト自動化(Test Automation) テスト自動化って、いつからかものすごく流行ってる感があります。 日本語にはこういう表現があるでしょう。 早い者勝ち 少し使われるケースが違うとは思いますが、テストって、時間との戦いになるところがあるので、 結局同…