Giter Site home page Giter Site logo

muratsevim / ios-screenshot-automator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from toursprung/ios-screenshot-automator

2.0 1.0 1.0 156 KB

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.

License: BSD 2-Clause "Simplified" License

JavaScript 5.29% Shell 24.75% AppleScript 41.09% Python 27.94% Perl 0.93%

ios-screenshot-automator's Introduction

iOS-Screenshot-Automator

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

ios-screenshot-automator's People

Contributors

krausefx avatar muratsevim avatar onato avatar

Stargazers

clacla avatar Torsten Curdt avatar

Watchers

 avatar

Forkers

puzzlium

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.