Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Joshua Moody
    @jmoody
    You could just disable them with a backdoor? Or launch your application an env variable or argument that disables them?
    AqaSquad
    @AqaSquad
    A env variable flag is probably the path we’re headed down or having an automation specific build which excludes them. I have not explored calabash backdoors much yet so I will look into that.
    Joshua Moody
    @jmoody
    Better to use an env variable or an argument.
    AqaSquad
    @AqaSquad
    That makes sense - thanks for the feedback :)
    Joshua Moody
    @jmoody
    Pass this as options to the Calabash::Launcher
    {
      # List of args to launch your app with
      args: [ DEBUG, ENABLE_CHEATS]
    
      # List of environment variables to launch your app with
      env: { "DEBUG" => 1, "API" => "2.1", "BACKEND" => "https://example.com/staging" }
    }
    AqaSquad
    @AqaSquad
    Is that the way I would pass arguments to my application once it’s configured to understand those flags?
    Joshua Moody
    @jmoody
    Yes.
    Julien
    @LiohAu
    @jmoody and for my alert ?
    In my case it's the call alert that I would like to detect
    when you open a "tel://" url
    Alex Terente
    @alexterente
    hi all, I am new here, I need to add to the device agent for iOS the possibility to accept incoming calls from CallKit. I could not find anything yet that points to this and I wan to make sure is not implemented yet. Can someone confirm this?
    AqaSquad
    @AqaSquad
    image.png
    Is v2.3.2 the actual latest release of run_loop?
    AqaSquad
    @AqaSquad
    gem install run_loop pulls down run_loop-4.3.0. I’m assuming gem install defaults to pulling down the version tagged latest.
    Joshua Moody
    @jmoody
    run-loop 4.4.1 installed.
    v2.3.2
    We needed a patch release on 2.3.x to fix a bug in legacy systems.
    The current release is 4.4.1
    @alexterente What does the UI look like? You can probably accept a call with the device_agent query API.
    AqaSquad
    @AqaSquad

    run-loop 4.4.1 installed.

    Awesome! Thank you!

    alatem
    @alatem

    Hi all,

    I`m from México and I have a question, I can´t run the start_test_server_in_background into calabash-ios console, and it returns this error message when DeviceAgent try to install

    Data configurations:

    • Xcode to version 11.0 (11A420a)
    • iphone X 13.1.2
    • Ruby 2.6.5
    • Run_loop 4.4.1
    • calabash-cucumber 0.21.10
    • I set correctly the environment vars for run on real device
    • I have the valid codesign identity
    Captura de Pantalla 2019-10-08 a la(s) 17.14.30.png
    AqaSquad
    @AqaSquad
    Do you see DeviceAgent being pushed on to your device at all and it just fails to launch? Or are you not seeing it get installed on the device? If so, do you get any specific errors if you try to run that entire install command outside of the calabash console?
    alatem
    @alatem
    I could already. thanks for your answer :)
    Matthew Jackman
    @mjjackman
    Hi all,
    I wonder if you can help me. Since updating to iOS 13 some of the in app ID’s are no longer visible in calabash. For example we have an ID for the arrow on a dropdown box but I can’t see it in the calabash console, but it’s visible in iOS 12.3.1. We also have the problem were our logo in the navigation bar is no longer visible in calabash. Any help would be much appreciated.
    Xcode version 11.1iOS 13.1.2Run_loop 4.4.1Calabash-cucumber 0.21.10
    Serghei Moret
    @JoeSSS
    we noticed that something from system started to be invisible for Calabash, disabled a couple of tests. For example we opened Gallery app inside our app and were able to choose photos, which is not possible anymore on iOS 13
    Matthew Jackman
    @mjjackman
    Hi Serghei, do you think there will be a fix for this issue or is it unattainable with iOS 13?
    Serghei Moret
    @JoeSSS
    well, not sure if you experience the same problem. The question is “Will somebody want to make a PR fixing this?” :) We decided to just run this small subset of tests against iOS 12, as for us switching the simulator target to lower iOS under Xcode 11 fixed the issue.
    Matthew Jackman
    @mjjackman
    Okay, Thanks Serghei
    Serghei Moret
    @JoeSSS
    maybe you can use a workaround and in meanwhile create an issue in GitHub
    AqaSquad
    @AqaSquad

    What are the things to check to ensure DeviceAgent can get installed on a real device? Im having trouble getting it to re-install on a device which previously had it. My xcrun security find-identity -v -p codesigning output shows I have several code signing identities available. They are associated with the same apple developer account under which the application under test is registered and my target device is provisioned. What is the “golden path” requirements for being able to install deviceAgent?

    Ultimately, on install attempt, I’m getting the message
    Unable to find valid profile for codesign identity:

    Joshua Moody
    @jmoody
    run-loop 4.4.2 released. Fixes a problem with missing locales for dismissing APNS SpringBoard alerts. Whoops. Sorry I did not catch this problem.
    @AqaSquad Look in your Keychain Access.app for duplicate certificates or certificats missing private keys.
    Mateo Vallejo
    @Mateovallejo92_twitter
    Hi I’m new to this room I was trying to clean up my code With rubicon and I’m having like a lot of troubles specially with this offense I actually don’t know what to do
    For this line I get device_agent.instance_eval(‘client’)
    Mateo Vallejo
    @Mateovallejo92_twitter
    Pass File and line to eval method as they are used by backtraces
    Joshua Moody
    @jmoody
    run-loop 4.5.0 released. Support for Xcode 11.2 and more SpringBoard alert fixes. We think we have sorted out all the problems. Almost all privacy alerts in every Apple-supported language are automatically dismissed.
    Joshua Moody
    @jmoody
    I released a new Calabash iOS Server. I will not release a new calabash-ios gem version. Contact me if you want to publish a new gem version.
    I have been sick for more than 10 days so expect some delays in repsonding.
    alatem
    @alatem
    I have a situation, I want to use AppCenter with calabash, but I can't confirm system alert for allow notifications, I try with this.

    begin
    device_agent.wait_for_springboard_alert(60) # timeout is optional
    device_agent.dismiss_springboard_alert("Permitir")
    rescue RuntimeError
    device_agent.wait_for_springboard_alert(10) # timeout is optional
    device_agent.dismiss_springboard_alert("Permitir")
    end

    Turn automatic dismiss back on

    device_agent.dismiss_springboard_alerts_automatically!

    but this doesnt works.

    Xcode 11
    iOS 13.2.2

    Environment:
    run_loop 4.5.0
    calabash-cucumber 0.21.10

    But In my Local environment its works fine.

    Joshua Moody
    @jmoody
    It is possible that your locale is not supported yet in Test Cloud. We are deploying the latest DeviceAgent today.
    I would not expect your begin/rescue block to work.
    Calabash will automatically dismiss the SpringBoard alert.
    You need to turn off automatic dismissal, wait for the alert, and then dismiss it. Then turn automatic dismissal back on.
    I would not waste time trying to validate whether or not your application pops a SpringBoard alert for APNS - it is a waste of time and effort. Just let Calabash dismiss the alert automatically and focus on testing other parts of your application.
    alatem
    @alatem
    Thanks a lot @jmoody , I will try your advice !