Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: J2ME testing with TTCN-3

J2ME testing with TTCN-3 26 Jan 2005 19:26 #6791

  • Jiangyu
  • Jiangyu's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi all,

Does anyone have experience to test J2ME application with TTCN-3? I wonder if
I can bundle the ttcn-3 testing tools up with a test MIDlet and run the tests
suites on the mobile emulator. I did one experiment in which I tried to test
one MIDlet application with ttcn-3 testing tools without the support of the
mobile emulator. However, I got "java.lang.UnsatisfiedLinkError: getProperty0"
problem although I am sure I imported all the jar archives (javax.* and
com.sun.*) in the ttcn-3 class path.

Here are all the classes imported in my midlet application:
import java.util.Vector;
import java.util.Calendar;
import java.util.Date;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;

The following is the error occured in the ttcn-3 testing tools after I loaded
the midlet application into the testing tools.
18:21:44.392 : starting testcase 'MyTestcase'
18:21:44.502 : component `component1' is mtc
18:21:44.542 : component `component2' is system
18:21:44.552 : starting component 'component1' with behavior 'MyTestcase'
18:21:44.552 : started testcase 'MyTestcase' with system ports
[component2.SystemPort]
18:21:44.582 : mapping component1.MyPort of component 'component1' with
component2.SystemPort
18:21:44.742 : abnormal termination of component 'component1' with
exception:
java.lang.UnsatisfiedLinkError: getProperty0
at com.sun.midp.main.Configuration.getProperty0(Native Method)
at com.sun.midp.main.Configuration.getProperty(Unknown Source)
at com.sun.midp.midlet.Scheduler.getScheduler(Unknown Source)
at com.sun.midp.midlet.MIDletState.<init>(Unknown Source)
at javax.microedition.midlet.MIDletProxy.<init>(Unknown Source)
at javax.microedition.midlet.MIDlet.<init>(Unknown Source)
at WhereAmIMidlet.<init>(WhereAmIMidlet.java:45)
at MyTestAdapter.triMap(MyTestAdapter.java:317)
at
de.tu_berlin.cs.uebb.muttcn.runtime.PortReference.map(PortReference.java:132)
at generated_ttcn.TTCN3_MyModule$2$1.on(TTCN3_MyModule.java:425)
at generated_ttcn.TTCN3_MyModule$Type_2.execute(TTCN3_MyModule.java:324)
at de.tu_berlin.cs.uebb.muttcn.runtime.ComponentLocalEntity$2.run
ComponentLocalEntity.java:682)
at java.lang.Thread.run(Unknown Source)
18:21:44.742 : testcase terminated with verdict: 'error'

Thanks for any kind of suggestions

Victor
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin