Failure Sharing

Bootup your energy with sharing failure.

Test

Learning Robot Framework : Data Driven Testing

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): …

Learning Robot Framework : Test Case Recording

Install chrome plugin : robot corder chrome.google.com It seems similar with Selenium IDE. Behavior check Record ============================================================================== Testcases =====================================…

Learning Robot Framework : Write Test in BDD Format

Given-When-Then Given : Prerequisite When : Check this part Then : Confirm the result en.wikipedia.org github.com

Learning Robot Framework : Work on Json

github.com github.com

Learning Robot Framework : Work on Excel File

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…

Learning Robot Framework : User Defined Keywords with Python

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…

Learning Robot Framework : Tags and Control Execution using Tags

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…

Learning Robot Framework : Setup and Teardown etc.

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 …

Learning Robot Framework : Create Resource Files

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…

Learning Robot Framework : Basic Usage

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…

Learning Robot Framework : Introduction

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…

Software Testing Interview

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…

Rerun Failing Tests

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…

Java Microbenchmark Harness (JMH)のインストール + Eclipseインポート

前提 JMHは、Mercurialリポジトリを使うため、事前にそれをインストールする必要があります。 ソースコードダウンロード Mercurial SCM 上記のURLから、自分のOSに合うものをダウンロードします。 Download JMH hg clone http://hg.openjdk.java.net/code-to…

@FindByを使って、簡単にWebElementをセットする。

FindByアノテーションを使うことで、こんな長いコードが public void setUserName(String username) { driver.findElement(By.id("MainContent_txtUserName")).sendKeys(username); } public void setPassword(String password) { driver.findElement(By.id(…

ウィンドウを移動して操作する。(POPUP or New Window)

例えば、こういうふうに複数のウィンドウがあるとしたら、 操作のためにポインターを移動させる必要がある。 こういう場合は、現在開いているウィンドウ情報を持ってきて(リスト)、 その中でポインターをSwitchさせたらオッケー Code // Switch the window…

Advanced XPath

ロードに時間がかかる時とかの解決策ってことかな。 //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ではなく、あえてTestNGを使う理由

データ扱いが簡単って言われてるけど、まだどこが簡単なのかわからん。 ちなみにJUnitでは、パラメータを挿入するとき、以下の様にする。 // This annotated method is designed to pass parameters into the class via constructor @Parameters public stat…

TestNGってテストライブラリもあるんですね。

今までは、JUnitと全く同じなんですけど、 何が違うのでしょうかね。

Selenium WebDriver:はじめ

タスク解決のために、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) テスト自動化って、いつからかものすごく流行ってる感があります。 日本語にはこういう表現があるでしょう。 早い者勝ち 少し使われるケースが違うとは思いますが、テストって、時間との戦いになるところがあるので、 結局同…