Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8905245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:20:54+00:00 2026-06-15T02:20:54+00:00

I am automating my tests using the instruments CLI. Now, the tests require starting

  • 0

I am automating my tests using the instruments CLI.

Now, the tests require starting another process once some specific action in my app is completed.

i.e lets say the application does

singin –> create account –> post an update –> singout

Once the signout is done, I want to take a memory snapshot of my app, for which I would use the top/ps command.

What I want to do is, log something specific on the output once the singout action is done.
e.g “Unique String ……. Singout complete ….. Unique String”

Another script would keep checking the output for logs and see if this string occurred and start some other process when it does.

Now the actual question, would doing a console.log(string) in my automation javascript put in on the stdout of instruments?
If now what command (or API) can I use to have custom logs on the stdoud of instruments CLI?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:20:55+00:00Added an answer on June 15, 2026 at 2:20 am

    I think this is what you’re searching for:


    UIALogger.logDebug("a log message");

    Put this in your script, and a log message will get written on Instruments’ Editor Log. I didn’t get it in the Trace Log yet however.

    You can find more information on this in this documentation page:
    ~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS6.0.iOSLibrary.docset/Contents/Resources/Documents/index.html#documentation/DeveloperTools/Reference/UIAutomationRef/Introduction/Introduction.html

    Language & Utilities > UI Automation JavaScript Reference

    You may also look at the UIALogger Class Reference: Core Services Layer > UIAutomation > UIALogger Class Reference

    And you may want to give a look to IMAT which seems to provide a great deal of automatization nirvana too!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been automating some tests against a web application using Python and COM. My
I'm automating UI tests to my Silverlight App and I'm using Visual Studio 2010
I am automating some test cases for an iPhone app and I am using
I am working on automating some telnet related tasks, using Bash scripts. Once automated,
I'm looking at using Jasmine to write some unit tests for our app's front
I am using Selenium for automating the tests. My application exclusively uses IE, it
I'm currently using the WebAii automation framework to write some user interface tests against
I'm trying to automating some tests for an Excel add-in, which is in xll
I'm automating web-UI testing using Selenium. All our existing non-UI related tests are executed
I am automating my tests using cucumber and I have a requirement to automate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.