mokemokechicken / crashmonkey Goto Github PK
View Code? Open in Web Editor NEWMonkey Test Tool For iOS
License: MIT License
Monkey Test Tool For iOS
License: MIT License
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?
In latest appium Desktop Version v1.0.0 on macOS not able to launch Android Emulator if i give Desired capabilities - avd Emulator Name . .
To successfully launch the Android Emulator i need to use
Desired capabilities - avd Emulator Name .
Desired capabilities - deviceName Again same Emulator Name .
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
eval' from /Users/homeqa/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in
'Error: Script threw an uncaught JavaScript error: undefined is not an object (evaluating 'event.apply') on line 158 of UIAutoMonkey.js
I keep getting this after a few seconds of running. Also seems like the UIAutoMonkey.js has not been updated in a while.
https://github.com/jonathanpenn/ui-auto-monkey/blob/master/UIAutoMonkey.js
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"
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:
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
When we can get support for this
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!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.