BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-15-2007, 03:58 AM   #1 (permalink)
New Member
 
Join Date: Oct 2007
Model: 7100g
PIN: N/A
Carrier: software enginner
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default testing tools for blackberry applications

Please Login to Remove!

hi
can anyone plz suggest any testing tools other than bunit for testing blackberry applications.
Offline  
Old 11-15-2007, 05:13 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

afaik bUnit is all there is at the moment.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 11-15-2007, 01:18 PM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can use j2meunit as well.
Offline  
Old 11-16-2007, 05:15 AM   #4 (permalink)
New Member
 
Join Date: Oct 2007
Model: 7100g
PIN: N/A
Carrier: software enginner
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank tou for replying...

richard can u tell me if j2meunit can be used for applications developed on blackberry apis also..is it not midlet oriented??
Offline  
Old 11-16-2007, 05:31 AM   #5 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

that's exactly the reason i did the quick hack of bunit - to support UiApplications instead of MIDLets
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 11-16-2007, 12:12 PM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I create unit tests as a stand-alone application (midlet, using j2meunit) which exercises the business logic contained in already-installed modules.

For example, an application that I wish to test is installed on the device as "com_foo_app". I write unit tests in my usual editor (making sure I add the "com_foo_app" project as a dependency of the unit test app) then compile the unit test app to a cod, install it on the device, and run it. Note that I've also installed j2meunit as a module on the device as well (preverify and compile as a library).

BlackBerry doesn't have great lcdui support for whatever reason, but j2meunit is apparently simple enough that it works alright. I'm not really testing a UiApplication vs a MIDlet per se, rather, testing the underlying logic and using a MIDlet to display the results.
Offline  
Old 07-14-2008, 02:08 PM   #7 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8320
PIN: N/A
Carrier: T-Mobile
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is it possible to include and run a secondary main() entry point in a BlackBerry Eclipse JDE project? I'm interested in running a second application, simply as a standalone Java application, and using it to execute some text-mode unit tests (not interested in the GUI since it takes a while to load). Right now, I get a "class not found" exception.

Update: I got this to work by adding a JAR reference to the project jar. But it looks like I cannot load classes from the RIM libraries:

Exception in thread "main" java.lang.ClassFormatError: Method <init> in class net/rim/device/api/ui/container/MainScreen has illegal modifiers: 0x101

Any suggestions (which might include "don't do that")?

thanks,
Jeff

Last edited by jlangr : 07-14-2008 at 02:17 PM.
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.