도구/Appium+Cucumber(7)
-
[Cucumber] run gradle 실행하기
run 버튼을 누른다.
2021.05.07 -
[Cucumber] BDD, 테스트 시나리오 문법(gherkin)
BDD, 테스트 시나리오 문법(gherkin) Feature : 테스트에 대상의 기능/책임을 명시한다. Scenario : 테스트 목적에 대한 상황을 설명한다. Given : 시나리오 진행에 필요한 값을 설정한다. When : 시나리오를 진행하는데 필요한 조건을 명시한다. 하나의 시나리오에 하나의 when조건을 가질것을 추천한다 하나 추가하고 싶으면 시나리오를 여러개로 쪼개야하는 신호다. Then : 시나리오를 완료했을 때 보장해야 하는 결과를 명시한다. 요약 테스트 대상은 A 상태에서 출발하며(Given) 어떤 상태 변화를 가했을 때(When) 기대하는 상태로 완료되어야 한다. (Then) 또는 Side Effect가 전혀 없는 테스트 대상이라면 테스트 대상의 환경을 A 상태에 두고(Given) 어떤 ..
2021.05.04 -
[Cucmber] You can implement missing steps with the snippets below, There were undefined steps. You can implement missing steps with the snippets below
Runner로 실행 glue 설정 시 유의사항 If your step definition classes are in the package steps (so they are stored in the path src/test/java/steps) the value must be glue = { "steps" }. https://stackoverflow.com/questions/50254255/junit-cucumber-cannot-find-steps/50349499#50349499 glue = { "steps" } Runner가 최상위 클래스에 있으므로 빼야한다.. glue를 계속 설정하고 Runner 실행시켰더니 There were undefined steps. You can implement missin..
2021.04.28 -
appium maven setting
appium maven setting 4.0.0 org.example appium-test 1.0-SNAPSHOT 8 8 io.appium java-client 5.0.4 org.seleniumhq.selenium selenium-java 3.9.1 org.apache.commons commons-lang3 3.7 org.testng testng 6.14.3 test 처음에는 IntelliJ 로 maven 셋팅을 통해 appium 테스트를 진행했다.. 근데 내가 검색한 요소를 아예 찾지 못하는 문제가 발생해 2일동안 폭풍 서치에 나섰다 driver.findElementById("kr.co.koreastock.mts.android:id/ok_btn").click(); 위와 같은 단순한 팝업도 찾지 못하는 ..
2021.04.19 -
appium gradle setting
appium gradle setting plugins { id 'java' } group 'org.example' version '1.0-SNAPSHOT' repositories { mavenCentral() } test { useJUnitPlatform() } dependencies { testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine' implementation ( 'org.slf4j:jcl-over-slf4j:2.0.0-alpha1', 'org.slf4j:slf4j-api:2.0.0-alpha1', 'org.slf4j:slf4j-simple:2.0.0-alp..
2021.04.19 -
[cucumber] gradle 설치
brew install gradle
2021.04.14