일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- perfect
- STF_PortForwarding
- rethinkdb
- GoCD
- insert
- kitura
- 28015
- openpyxl
- appium
- port forwarding
- nGrinder
- postgresql
- appium server
- Jupyter
- ubuntu
- SWIFT
- sshpass
- STF
- nohup
- nmap
- 실행권한
- Jupyter Notebook
- mysql
- create table
- centos
- ftp
- Materials
- PYTHON
- ssh
- postgres
- Today
- Total
목록Testing Automation (66)
don't stop believing
Appium에서 iOS를 실행하며 확인한 몇 가지 사항. 1. Inspector에서 iOS 앱이 설치되지 않았다.Enterprise 배포 앱의 api파일의 경우 Inspector로 설치가 되지 않았습니다.인증서가 없어서 설치되지 않았다는 메시지가 나오는데 찾아보니 appium에서는 Development 배포 앱만 설치가 된다고 합니다. 확인한 사항은 iPhone에 앱이 이미 설치되어 있을 경우에는 새로 빌드후 설치하지 않고 설치되어 있는 앱을 실행하게 됩니다. 따라서 iPhone에 설치되어 있는 앱이라면 Bundle ID만 알면 appium으로 실행할 수 있습니다. 2. Real Device에서는 설치가 된다.1번과 같은 Desired capability로 Real Device에서 실행했을때는 api 파..
Appium 에서는 Development Signed App만 실행된다고 합니다. 테스트해야할 대상 app이 xcode 프로젝트가 아닌 Enterprise Distribution App일 경우(api 파일만 있는 경우)는 Device에 설치가 되지 않습니다. 이럴 경우 ipa 파일을 iTunes 등으로 Device에 설치하고 아래와 같이 Bundle ID를 지정해 주면 됩니다. Device에 이미 설치되어 있는지 확인하고 설치되어 있다면 바로 App을 실행하게 됩니다. (당황스러운 것은 iTunes 12.7부터 앱관리가 없어졌다는 것... ) { "platformName": "ios", "platformVersion": "11.0", "deviceName": "iPhone 6", "automationNa..
Appium 설치와 구성, Instpector 확인까지 했다면 Python Appium Client로 연결하고 동작시켜 봅시다. 설치는 pip으로 해줍니다. $ pip3 install Appium-Python-Client 먼저 Android부터 해봅시다. Python 코드는 아래와 같습니다. ''' Android Native Script ''' import unittest import os from appium import webdriver from time import sleep from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.su..
Selenium With Python[http://selenium-python.readthedocs.io] 1. Installationhttp://selenium-python.readthedocs.io/installation.htmlSelenium 설치와 기본 설명입니다. 2. Getting Startedhttp://selenium-python.readthedocs.io/getting-started.htmlPython을 이용한 Selenium 기본 사용 설명과 Python Code 구조에 대해 설명합니다. 3. Navigatinghttp://selenium-python.readthedocs.io/navigating.html웹 페이지의 이동과 input에 대한 typing, drag and drop 등을 ..
Selenium을 사용해 테스트를 할때 element를 찾을 수 있도록 Web Page가 로딩이 끝날때 까지 기다려야 합니다.AJAX를 이용해 만든 Web의 경우 리소스가 로드하는데 부문별로 다를 수 있습니다. Selenium에서는 두 가지 타입의 wait method를 제공합니다. Explicit Waits특정 상태가 될때까지 기다리고, 상태가 되면 바로 실행한다. from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions a..
앞서 selenium에서 element를 찾는 것을 확인했습니다.Selenium Locating Elements (python) 각 element에 따라 method를 따로 사용하는 것 보다 깔끔하게 정리하기 위해 By를 사용해 봅시다.driver.find_element(By., '')으로 사용합니다. 여러 element를 찾을 경우 find_elements로 할 수 있습니다. 사용은 아래와 같이 합니다. from selenium.webdriver.common.by import By driver.find_element(By.XPATH, '//button[text()="Some text"]') driver.find_element(By.XPATH, '//button') driver.find_element(B..
Selenium을 사용하기 위해서는 Web source의 element를 찾아야 합니다.[http://selenium-python.readthedocs.io/locating-elements.html] Selenium에서는 web page의 elements를 찾기위해 아래와 같은 method들을 제공합니다.아래 method들은 HTML의 page source중 가장 첫번째 element를 반환합니다.find_element_by_idfind_element_by_namefind_element_by_xpathfind_element_by_link_textfind_element_by_partial_link_textfind_element_by_tag_namefind_element_by_class_namefind_el..
Selenium IDE를 사용해서 record를 하려고 했는데 안타까운 뉴스가 있었네요.[https://seleniumhq.wordpress.com/2017/08/09/firefox-55-and-selenium-ide/]Firefox 55에서 이젠 selenium IDE가 동작하지 않으며 이제 지원되지 않을 거라는 겁니다. geckodriver를 좀 알아봐야 겠네요.
Selenium은 어려 개발 언어를 지원합니다. python 버전을 설치하고 기본 예제를 실행해 봅시다. Python이 설치되어 있다면 pip으로 간단히 설치할 수 있습니다. $ pip install selenium Collecting selenium Downloading selenium-3.7.0-py2.py3-none-any.whl (935kB) 100% |████████████████████████████████| 942kB 1.6MB/s Installing collected packages: selenium Successfully installed selenium-3.7.0 Mac에서 selenium을 실행한다면 geckodriver를 설치하고 설치된 위치를 확인합니다. $ brew install..
Command line으로 Appium을 실행해 보겠습니다. 먼저 appium이 실행되어 있는지 확인해 봅시다.기본적으로 port를 확인해 봅니다. OSX에서는 아래 명령으로 현재 열려있는 port와 Process ID를 확인할 수 있습니다. $ sudo lsof -PiTCP -sTCP:LISTEN 만약 실행되어 있다면 아래와 같이 출력됩니다.Appium 29344 appium 45u IPv4 0x6244b6d4294793c7 0t0 TCP *:4723 (LISTEN) Appium이 4723 port로 열려 있네요. process kill 로 Appium을 종료합니다. Appium은 Application으로도 실행할 수 있습니다.옵션을 추가하고 Start Server를 클릭하면 Appium 서버가 실행됩..