Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13559

Allow extra parameters when running "Android monkey tester"

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The android monkey tester can take a number of parameters when running, it will be nice to being able to add parameters when android monkey is starting.

        Attachments

          Activity

          Hide
          joebowbeer Joe Bowbeer added a comment -

          Please support multiple -p <package> parameters in the configuration.

          Show
          joebowbeer Joe Bowbeer added a comment - Please support multiple -p <package> parameters in the configuration.
          Hide
          japgolly David Barri added a comment -

          FYI a workaround is to add your additional parameters to the plugin's Package ID field.

          For example I set my package ID to
              golly.bpm --pct-trackball 0 --ignore-native-crashes --randomize-throttle.
          And in the logs I see it run monkey like this:
             /opt/android-sdk/platform-tools/adb -s localhost:53355 shell monkey -v -v -p golly.bpm --pct-trackball 0 --ignore-native-crashes --randomize-throttle -s 262851713055245828 --throttle 0 50000

          Show
          japgolly David Barri added a comment - FYI a workaround is to add your additional parameters to the plugin's Package ID field. For example I set my package ID to      golly.bpm --pct-trackball 0 --ignore-native-crashes --randomize-throttle . And in the logs I see it run monkey like this:     /opt/android-sdk/platform-tools/adb -s localhost:53355 shell monkey -v -v -p golly.bpm --pct-trackball 0 --ignore-native-crashes --randomize-throttle -s 262851713055245828 --throttle 0 50000
          Hide
          mkaloer Mads Kalør added a comment -

          While adding multiple parameters is indeed possible at the moment, I needed the ability to not state a package (meaning that any package is allowed). Before, if the package field was left empty, the following argument was given to the monkey tool: "-p null".

          When I did this, I also added the option to separate multiple packages by a space and to specify zero or more categories (in a separate commit, so can eventually be discarded if not needed). I have created a pull-request on Github (#47) which may be merged with the master branch.

          Show
          mkaloer Mads Kalør added a comment - While adding multiple parameters is indeed possible at the moment, I needed the ability to not state a package (meaning that any package is allowed). Before, if the package field was left empty, the following argument was given to the monkey tool: "-p null". When I did this, I also added the option to separate multiple packages by a space and to specify zero or more categories (in a separate commit, so can eventually be discarded if not needed). I have created a pull-request on Github (#47) which may be merged with the master branch.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/hudson/plugins/android_emulator/monkey/MonkeyBuilder.java
          src/main/resources/hudson/plugins/android_emulator/monkey/MonkeyBuilder/config.jelly
          http://jenkins-ci.org/commit/android-emulator-plugin/a8158e40dab6247dd27c7e483aa1b19e983c99e7
          Log:
          [FIXED JENKINS-13559] Allow passing extra command line parameters to monkey.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: src/main/java/hudson/plugins/android_emulator/monkey/MonkeyBuilder.java src/main/resources/hudson/plugins/android_emulator/monkey/MonkeyBuilder/config.jelly http://jenkins-ci.org/commit/android-emulator-plugin/a8158e40dab6247dd27c7e483aa1b19e983c99e7 Log: [FIXED JENKINS-13559] Allow passing extra command line parameters to monkey.
          Hide
          orrc Christopher Orr added a comment -

          Version 2.13 of the plugin has been released, which includes this fix.

          Show
          orrc Christopher Orr added a comment - Version 2.13 of the plugin has been released, which includes this fix.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              jhespinosa Jose Espinosa
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: