|
|
|
|
On Jun 8, 5:01 am, Can Saner <cansa...@gmail.com> wrote:
> Hello again,
>
> I just checked out bonjour brach and tried to run CountItOut example as it
> is tried to be run against real device. When I try to run test cases it
> always gives me "uninitialized constant Frank::USING_PHYSICAL_DEVICE
> (NameError)" and I don't understand why. As far as I understand,
> USING_PHYSICAL_DEVICE constant should be set false when there is not any
> environment variable set or any variable USING_PHYSICAL_DEVICE is defined
> from this code snippet:
>
> module Frank
>
> USING_PHYSICAL_DEVICE = !!ENV['USING_PHYSICAL_DEVICE'] ||
>
> ( defined?(::USING_PHYSICAL_DEVICE) && !!::USING_PHYSICAL_DEVICE ) ||
>
> false
>
> But still It says that USING_PHYSICAL_DEVICE constant is uninitialized and I
> really can't find the reason. I set USING_PHYSICAL_DEVICE environment
> variable or tried to write it in env.rb to define it as ruby variable but I
> can't run test cases against neither physical device nor simulator.
> Can you please help me if you see anything that I miss?
>
> Detailed error trace is this:
> *****************************************************************************************************************************
> *****************************************************************************************************************************
>
> Thanks in advance,
> CS
>
> On Fri, May 20, 2011 at 6:59 AM, Pete Hodgson <phodg...@thoughtworks.com>wrote:
>
>
>
> > Stew, I'm exactly the same - I don't really see testing on the device as
> > being *that* valuable, but it is a fun challenge and a cool way to
> > demonstrate Frank!
>
> > And yes, absolutely agree that it would be great to have some contact with
> > folks inside Apple. Regarding a sample app, I'm working at the moment on
> > getting a really simple demo test set up using the CountItOut example app
> > which I recently added to the repo. It will be able to run on a physical
> > device. It will also be ready for WWDC - I am getting it ready for a demo at
> > a ThoughtWorks event the week before. Hopefully we can meet up before WWDC
> > and conspire!
>
> > On Thu, May 19, 2011 at 4:16 PM, Stewart Gleadow <sglea...@gmail.com>wrote:
>
> >> Oh yeah, you're going to have to show me around you realise, haven't been
> >> to SF for 17 years.
>
> >> Everyone recommends having a sample application ready to play with when
> >> you go to the labs... maybe a small app with some Frank tests so we can bug
> >> them on how to run it... and also some sample UIAutomation tests to see if
> >> they can be run without Instruments in any way!
>
> >> - Stew
>
> >> On 20/05/2011, at 9:08 AM, Chris Stevenson wrote:
>
> >> Hey Stewart,
>
> >> I'll be there too and I'd love to be a part of that discussion. It would
> >> be great to get some testing contacts inside Apple.
>
> >> Chris
>
> >>>> On May 18, 2011, at 5:18, Stewart Gleadow < <sglea...@gmail.com>
> >>>> sglea...@gmail.com> wrote:
>
> >>>> Pete,
>
> >>>> I couldn't get it connecting every time... there was some magical
> >>>> combination of enabling VoiceOver (through iTunes), cleaning, building,
> >>>> running up the Frankified target (through Xcode) and checked in Symbiote...
> >>>> but it wasn't every time. Sometimes, I just couldn't get it to connect. Once
> >>>> it worked, I got a good hour or so when it would connect pretty reliable.
>
> >>>> It's awesome watching a phone sitting on your desk moving, and green
> >>>> cucumber tests in your terminal.
>
> >>>> Any solutions for automatically booting the app after an xcodebuild CI
> >>>> compile or are we back to Applescripting Xcode?
>
> >>>> - Stew
>
> >>>> On 18/05/2011, at 9:39 PM, Pete Hodgson wrote:
>
> >>>> This is a creepy coincidence. I was just working on getting Frank to
>
> ...
>
> read more »- Hide quoted text -
>
> - Show quoted text -
Pete Hodgson just told me "Yes, it is possible to run Frank tests
--
You received this message because you are subscribed to the Google Groups "Frank" group.
To unsubscribe from this group and stop receiving emails from it, send an email to frank-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
instruments -w <Your_Device_UDID> -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Activity Monitor.tracetemplate" -D /tmp/ignoredtracedata.trace <App_Name>.app
--
Hey everyone, I was able to get the tests running on my device, but none of the touch events are working. I can type into textfields and verify that a view is on the screen. I can run the same tests in the simulator and the touch events work, but on the device I get a log that it passed, but the button isn't touched. I've tried it with VoiceOver turned on, but that doesn't change anything. Do I need to have VoiceOver turned on?
{"uid":520756288,"subviews":[{"uid":520782736,"subviews":[{"uid":520765856,"subviews":[{"uid":520778448,"subviews":[{"uid":508792272,"subviews":[{"uid":521120592,"subviews":[{"uid":520536368,"subviews":[],"class":"UIImageView"}, ....
and when I do http://localhost:37265/dump
I get stuff like this:
{"frame":{"size":{"width":320,"height":480},"origin":{"x":0,"y":0}},"uid":199387296,"backgroundColor":{"green":0,"red":0,"alpha":1,"blue":0},"isHidden":0,"subviews":[{"frame":{"size":{"width":320,"height":460},"origin":{"x":0,"y":20}},"uid":164311920,"backgroundColor":{"green":0.1960784,"red":0.1254902,"alpha":1,"blue":0.1607843},"isHidden":0,"subviews":[{"frame":{"size":{"width":320,"height":460},"origin":{"x":0,"y":0}},"uid":164253904,"backgroundColor":"<NON-RGB COLOR>","isHidden":0,"subviews":[{"frame":{"size":{"width":320,"height":460},"origin":{"x":0,"y":0}},"uid":164092976,"isHidden":0,"subviews":[{"frame":{"size":{"width":320,"height":460},"origin":{"x":0,"y":0}},"uid":164407120,"isHidden":0,"subviews":[{"zoomScale":1,"alwaysBounceHorizontal":0,"frame":{"size":{"width":320,"height":460},"origin":{"x":0,"y":0}},"alpha":1,"contentInset":"<UIEdgeInsets>","class":"UIScrollView","showsHorizontalScrollIndicator":1,"subviews":[{"frame":{"size":{"width":100,"height":100},"origin":{"x":110,"y":52}},"uid":164074080,"isHidden":0,"accessibilityLabel":"logo_100","subviews":[],"tag":0,"accessibilityFrame":{"size":{"width":100,"height":100},"origin":{"x":110,"y":72}},"alpha":1,"autoresizingMask":37,"class":"UIImageView"},{"frame":{"size":{"width":320,"height":142},"origin":with the accessibility labels and a lot more information. Is that hacky code broken then? Shouldn't it not work for both of them if the accessibiliy code is broken?
if $USING_PHYSICAL_DEVICE
Frank::Cucumber::FrankHelper.test_on_physical_device_via_bonjour
After do
step 'I ask the app to reset to home'