Coder Social home page Coder Social logo

crashmonkey's People

Contributors

holmari avatar jollychang avatar mokemokechicken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crashmonkey's Issues

lock -> unlock doesn't work

I have the impression, that the unlock mechanism doesn't work so my tests use to stop prematurely.:

2014-10-21 09:50:58 +0000 Debug: target.lockForDuration("2.00243217498064")
2014-10-21 09:51:01 +0000 Debug: target.springboard().mainWindow().scrollViews().firstWithPredicate("ANY elements.name == 'SlideToUnlock' OR ANY elements.name == 'SlideToSetup'").dragInsideWithOptions({endOffset:{x:0.90,y:0.90}}, duration:"0.5", startOffset:{x:0.10,y:0.90}}})
2014-10-21 09:52:18 +0000 Stopped: Script was stopped by the user

Anyone experiencing similar issues?

Some issue in monkey_runner.rb

when i run smart_monkey -a {boundle id},it remaids me bellow,could you help me resolve it?

sh: -c: line 0: idevicecrashreport -u AADA204E-F363-48C8-8B86-D12A308A9509 (Simulator) -e -k /Users/homeqa/smart_monkey_result/report_20170712153821/crash_1' Attempting iOS device system log capture via deviceconsole. Stop iOS system log capture. /Users/homeqa/.rvm/gems/ruby-2.4.0/gems/smart_monkey-0.5.0/lib/smart_monkey/monkey_runner.rb:201:in device': undefined method strip' for nil:NilClass (NoMethodError) from /Users/homeqa/.rvm/gems/ruby-2.4.0/gems/smart_monkey-0.5.0/lib/smart_monkey/monkey_runner.rb:86:in block in run_a_case'
from /Users/homeqa/.rvm/gems/ruby-2.4.0/gems/smart_monkey-0.5.0/lib/smart_monkey/monkey_runner.rb:603:in watch_syslog' from /Users/homeqa/.rvm/gems/ruby-2.4.0/gems/smart_monkey-0.5.0/lib/smart_monkey/monkey_runner.rb:81:in run_a_case'
from /Users/homeqa/.rvm/gems/ruby-2.4.0/gems/smart_monkey-0.5.0/lib/smart_monkey/monkey_runner.rb:48:in block in run' from /Users/homeqa/.rvm/gems/ruby-2.4.0/gems/smart_monkey-0.5.0/lib/smart_monkey/monkey_runner.rb:45:in times'
from /Users/homeqa/.rvm/gems/ruby-2.4.0/gems/smart_monkey-0.5.0/lib/smart_monkey/monkey_runner.rb:45:in run' from /Users/homeqa/.rvm/gems/ruby-2.4.0/gems/smart_monkey-0.5.0/bin/smart_monkey:58:in <top (required)>'
from /Users/homeqa/.rvm/gems/ruby-2.4.0/bin/smart_monkey:23:in load' from /Users/homeqa/.rvm/gems/ruby-2.4.0/bin/smart_monkey:23:in

'
from /Users/homeqa/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in eval' from /Users/homeqa/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in '

RCov does not work with Ruby 2.0. Please use simplecov.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
creating Makefile

make "DESTDIR="
compiling 1.8/callsite.c
1.8/callsite.c:2:10: fatal error: 'env.h' file not found
#include <env.h>
         ^
1 error generated.
make: *** [callsite.o] Error 1


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/rcov-1.0.0 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/rcov-1.0.0/ext/rcovrt/gem_make.out
An error occurred while installing rcov (1.0.0), and Bundler cannot continue.
Make sure that `gem install rcov -v '1.0.0'` succeeds before bundling.

line16 in Gemfile should be if RUBY_VERSION > "1.9"

the script is not taking any screenshots

Hi,

unfortunately I have the problem that script is not taking any screenshots while it is running.
I start the script as it is described with:

  • crash_monkey -a /pathTo.app -w B9DECF10-E048-4823-83D5-7E34F91AFAE5
  • simulator is starting and swipes, pinches etc. are executed
  • unfortunately I con not see the "Screenshot is captured" in the console as it is described in the video below
  • when the script is running a report has been created and in the crash_monkey_result folder I can see the index.html

but I only can see the console logs and the screenshots as it is described in the video here:
https://www.youtube.com/watch?v=y5PZGVbLHtI&feature=youtu.be

Did I missed something or is here an issue ?

thanks for your help

If crashmonkey runs to different app, how can it be detected?

Hi Mokemokechicken, I wanna ask how do you detect if the UIA runs on different app?
I notice in your demo (as attached screenshot) you can detect the different app and force to stop the current instruments task. But when I tried with your version it can't detect, the UIA just hangs over there unless manually taps it back. I also traced your code but not found relative coding. Can you give a hint how did you do that? Thanks!!
screen shot 2015-05-15 at 2 39 12 pm

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.