본문 바로가기

QA61

[Python] 테스트자동화 unittest 테스트 자동화를 JAVA로 작성할 경우는 JUnit 및 TestNG를 이용해서 케이스를 만들어서 케이스별 결과를 확인할 수 있다. 조사해보니 Python으로 작성할 경우는 없는 줄 알았는데 unittest와 pytest 등을 제공해서 케이스를 작성할 수 있다. Python 내장 모듈인 unittest을 통해서 다른 라이브러리 없이 비교적 간단하게 단위 테스트를 작성할 수 있다. # 단위 테스트 작성 import unittest Testcase 작성하기 # test.py import unittest class TestExample(unittest.TestCase): def test_upper(self): self.assertEqual('foo'.upper(), 'FOO') def test_isupper(s.. 2021. 1. 26.
[Android] App Package and App Activity 구하는 법 Appinum으로 단말에서 테스트를 진행하려면 appPackage,appActivity를 알아야 한다. 해당 값을 알려면 다음과 같은 명령어를 쓰면 된다. 먼저 앱을 실행한 상태로 해야 한다. # 디바이스 연결되어 있는지 확인 adb devices List of devices attached * daemon not running; starting now at tcp:5037 * daemon started successfully LMG710Nb9ca275e device #appPackage, appActivity값 알아내기 adb devices com.lge.launcher3/com.lge.launcher3.LauncherExtension 여기서 com.lge.launcher3가 appPackage 값이고.. 2021. 1. 25.
[TestNG] testng.xml is not a valid file error 해결법 testng.xml을 wokspace에 넣어주면 된다. 2021. 1. 25.
MAC에서 Appinum 설치하기 URL : github.com/appium/appium-desktop/releases/tag/v1.19.1 Release 1.19.1 · appium/appium-desktop Bump Appium version to 1.19.1 Update translations (Inspector is the same as 1.18.3) github.com 자동화 테스트를 진행하고자 MAC에 Appinum을 설치하고자 하는데 다운로드를 받고 실행을 하면 계속 appium 응용 프로그램을 열 수 없습니다 팝업이 노출됐다. 검색해도 안나오다가 다른 맥 버전(dmg)을 설치을 설치하니 그때부터 되었다. zip 파일이 아닌 dmg 파일로 다운로드 받는 걸 추천! 2021. 1. 25.