Skip to content
프로젝트

toursprung/iOS-Screenshot-Automator

GitHub에서 보기

소개

지정한 모든 언어로 iOS 기기별 스크린샷을 일괄 생성하며, 생성한 스크린샷은 iTunes Connect에 바로 업로드할 수 있습니다. Apple의 UIAutomation을 사용하고 통합하며, 단위 테스트에도 유용합니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

[discontinued] iOS-Screenshot-Automator


Use fastlane instead to automate your screenshots 👍


Batch-creates screenshots for all iOS devices in every language you define, ready for immediate upload in iTunes Connect. Uses and integrates with UIAutomation from Apple. Also great for unit testing.

Follow the developer on Twitter: KrauseFx (Felix Krause)

The script is based on UIAutomation to navigate the app and take the screenshots.

Define which languages and simulator types you want to use in the "run"-file.

#Run the script:#

./run ../TestScript.js AppName

To take screenshots with UIAutomation use captureLocalizedScreenshot. It will automatically name the file properly and put it in the Results folder. (Don't forget to import Helper.js in your javascript UIAutomation script)

If you want to set the carrier name manually, take a look at the "changeCarrierName" file

You can use tuneup_js to start your scripts and define tests. It's a really great library that helps you develop unit tests faster. You can also use these scripts to do unit testing.

To fetch the tuneup_js submodule, use the following git command. git submodule update --init

Example of TestScript.js

#import "iOS-Screenshot-Automator/Helper.js"


test("Login Test", loginTest);
test("Route Test", routeDetailsTest);
...

function loginTest(target, app)
{
	var window = app.mainWindow();
	var navBar = window.navigationBar();
	
	...
	
	captureLocalizedScreenshot("Login");
	
	....
}

If you want to add the orientation of the iDevice in your screenshot names as well, configure it in the Helper.js file.

#Open Todos:#

  • Put all resulting screenshots in one folder (or more meaningful folders)
  • Raise AppleScript exception when UIAutomation script fails
  • If possible: Automate uploading screenshots to iTunesConnect directly

iOS Screenshot Automator

관련 프로젝트 살펴보기

불러오는 중…