BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-15-2007, 03:58 AM   #1
venu_vml
New Member
 
Join Date: Oct 2007
Model: 7100g
PIN: N/A
Carrier: software enginner
Posts: 7
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
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
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
richard.puckett
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Default

Can use j2meunit as well.
Offline  
Old 11-16-2007, 05:15 AM   #4
venu_vml
New Member
 
Join Date: Oct 2007
Model: 7100g
PIN: N/A
Carrier: software enginner
Posts: 7
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
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
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
richard.puckett
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
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
jlangr
New Member
 
Join Date: Jul 2008
Model: 8320
PIN: N/A
Carrier: T-Mobile
Posts: 5
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  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM  IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working picture

OEM IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working

$49.99



Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM picture

Lot of 2 IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM

$12.00



IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360 picture

IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360

$18.00



New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks picture

New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks

$14.99



IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259 picture

IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259

$24.79



NEW Genuine OEM IBM Quietwriter Hi Density Correcting Ribbon 1299635 NOS picture

NEW Genuine OEM IBM Quietwriter Hi Density Correcting Ribbon 1299635 NOS

$19.99







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