Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 73
Registered: ‎10-23-2009
My Device: Not Specified
Accepted Solution

Tips for real world device testing

I keep running into problems developing BB Apps where my code works perfectly fine on all simulators, but as soon as I make the product live, dozens of reports of being "unable to connect" (or some other bug) come flooding in from a random set of devices (the latest wave is from Tour owners on Sprint, and of course the app works fine on the Tour Simulator for Sprint using the same OS)  I'm not able to go out and buy a Blackberry for every model on every carrier, and the manpower to do such testing is beyond what my company can handle anyway.

 

What I am looking for are tips from some experienced developers.  What do you do to circumvent this problem?  How do you verify that your code will run on real devices?  When you get hit by a real-world only bug, how do you troubleshoot it?

 

Thanks,

~NN

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Tips for real world device testing

i don't recall the name just yet, but there is a company that provides real phones for testing purposes remotely.

 

other than this, logging goes a long way in finding these problems.

we have also invested a lot of time into our connection management classes (which we re-use for all apps).

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Tips for real world device testing

Agree completely with Simon. 

 

deviceAnywhere is the one that comes to mind, there is at least one other company that was at the last but one DevCon, but I can't remember their name. 

 

Every new customer has a new experience with networking and you slowly build up your code to handle the cases.  Have to say we are lucky, because we mainly deal with corporates, so use BES connections mostly.  And in the UK, there are only 5 carriers, so it is easy to code a quick test and determine what APN settings to use for each. 

 

Re debugging, one method I would recommend is to write your own log and provide your users with an easy way to email it to you.  In fact, offer to send it when you know you have a problem. 

Developer
Posts: 73
Registered: ‎10-23-2009
My Device: Not Specified

Re: Tips for real world device testing

Thanks for the tips, guys.  I'll keep the third party testing providers in mind.  

 

FYI, I found the problem that inspired this thread using logging ...  the service book entry for MDS and public MDS info had been renamed in the new version of the OS and my app could no longer find them.

 

Since you were both nice enough to answer, and I can only tag one reply as "the solution" I'll give the other one a kudo as the consolation prize.  :-)

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Tips for real world device testing

well, you can give peter a kudos as well, no harm done Smiley Happy

 

how are the service books renamed? just in case, i think my network code still works fine.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Tips for real world device testing

Since I have code that uses Service Books, I would like to know how they have been renamed too.

Developer
Posts: 73
Registered: ‎10-23-2009
My Device: Not Specified

Re: Tips for real world device testing

The service book entry for public MDS used to be something like:

Blackberry Internet Browsing Service [BrowserConfig]

now it's 

Internet Browser [BrowserConfig]

 

That's on Telus Storm devices. The original service book entry was on OS 4.7.0.122 and the new one is on OS 5.0.0.419  I don't know what the naming is on the new Sprint Tour OS.

 

The problem I have is it sets the precedent that the name does not have to be constant ... and I don't know what to search for in that case.  Is there anything wrong with just trying all BrowserConfig entries?  My instinct is that this tactic would be a security, spam, and timing problem.  Thoughts?

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Tips for real world device testing

OK, that is not a Service Book I use - thanks for letting us know. 

Developer
Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Tips for real world device testing

i suggest to use attributes of the cid and uid to check for the correct servicerecord instead of the name. i think the network diagnostic tool used this approach:

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter