The present invention provides a method to test a protocol stack operable
to be loaded to a wireless terminal. This involves the creation of
simulation scripts from prior test case logs associated with a prior test
case executed on a physical wireless terminal. When the prior test case
is failed on a physical device, the simulation scripts are used to locate
and correct errors in protocol stack. The simulation scripts are then
stored within and retrieved from a library. These simulations scripts are
loaded within a simulation environment within computer systems such as a
personal computer. The simulation scripts are executed on the protocol
stack within the simulation environment to produce a set of results.
These results are then compared to a reference log, wherein a favorable
comparison indicates a satisfactory simulation. Should an unfavorable
comparison result, the protocol stack may be revised. The above process
may then be repeated on the revised protocol stacks following the
detection, location and correction of errors within the protocol stack.