--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
--- You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for your input George.Some kind of trick for URL re-writing is also definitely possible. Off the top of my head the issue I can see here is how you do it. You could try something like Charles Proxy, host files, etc, but that would make running our tests in 3rd party testing farms more complicated.But this is just one side of the idea, the other side is effectively using a tool (BDD) for something that's not really its main purpose (to put it mildly).The questions then is, how do you automate the testing of analytics implementation? Really curious about how everyone else does it.BTW, Google Analytics works by making HTTP requests to Google servers, simple as that. They have somehow decent documentation, for example this is the list of variables they send:Cheers,Juan
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
Hey,Yeah, I'm not trying to test Google code, I'm trying to test that my developers are making the expected calls to GA. GA calls are just HTTP calls to Google servers, btw.There are several way of manually testing this, going through the code (native iOS and Android) is one of them, Google lists a few others in that link I sent before.My point is that I want to automate the tests. We have also considered unit testing this, but as I said before, most of the analytics calls have to do with user actions (press a button, go to a screen,...) which is why I'm bringing this up on this list.
Hey,Yeah, I'm not trying to test Google code, I'm trying to test that my developers are making the expected calls to GA. GA calls are just HTTP calls to Google servers, btw.
Hey,Yeah, I'm not trying to test Google code, I'm trying to test that my developers are making the expected calls to GA. GA calls are just HTTP calls to Google servers, btw.There are several way of manually testing this, going through the code (native iOS and Android) is one of them, Google lists a few others in that link I sent before.My point is that I want to automate the tests. We have also considered unit testing this, but as I said before, most of the analytics calls have to do with user actions (press a button, go to a screen,...) which is why I'm bringing this up on this list.Hope it makes sense!J
--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi everyone, will try to reply one by one!@Roberto
"please consider that you are additionally testing the connection/communication layer (between your application and the tracking system), the tracking system api implementation correctness, the network connectivity and network services (dns, firewalls, routers), the tracking system storage facilities"The idea is that the mock server and the testing device are both on the same local network. You can still run into network issues, but the chances are much, much smaller than if we had to actually exit to the internet."Why don't you just mock the GA library? [...] You inject the mock in place of the GA library [...] This way you can test your guys have properly invoked its methods "You are referring here to unit testing right? This could work, it's definitely one of the options. It's just that business people are going to be more comfortable using BDD to express the analytics requirements.
So if it can be done both with BDD and TDD, it's a matter of deciding which approach fits best our project. And please note I've not said it's "best", since depending on the team, client, etc. different project might need different approaches.
You received this message because you are subscribed to a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/RBGhMYNDLoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cukes+un...@googlegroups.com.
" You can use mocks within BDD as with any other test methodology [...] You can set up your mock in a Given step definition or in a Before hook and then verify the mock in the Then step definition"This might not be that simple to do depending on the platform you are targeting. For example, it's doable for the Cucumber JVM + Android combo, not so much if you are using Calabash to target iOS, since Calabash/Cucumber code is Ruby and the app is Objective C (typically compiled and installed ahead of running your tests).Would absolutely love to be corrected though if you have any pointers!
Hi everyone, will try to reply one by one!@Roberto"please consider that you are additionally testing the connection/communication layer (between your application and the tracking system), the tracking system api implementation correctness, the network connectivity and network services (dns, firewalls, routers), the tracking system storage facilities"The idea is that the mock server and the testing device are both on the same local network. You can still run into network issues, but the chances are much, much smaller than if we had to actually exit to the internet."Why don't you just mock the GA library? [...] You inject the mock in place of the GA library [...] This way you can test your guys have properly invoked its methods "You are referring here to unit testing right? This could work, it's definitely one of the options. It's just that business people are going to be more comfortable using BDD to express the analytics requirements.So if it can be done both with BDD and TDD, it's a matter of deciding which approach fits best our project. And please note I've not said it's "best", since depending on the team, client, etc. different project might need different approaches.@Andrew"So to summarize if you already have a great set of features to work with then by all means leverage them to test your analytics code."
I wouldn't say "great", but yeah, both apps are fully BDD'ed already.@AbagmarJust had a look at WAAT, but it looks like web only? Can it be used for native apps?