Method for testing branch execution and state transition logic in session initiation protocol application modular components
First Claim
1. A computer implemented method for testing branch execution and state transition logic in session initiation protocol application modular components, the method comprising:
- initializing the artificial session initiation protocol runtime environment, wherein the artificial session initiation protocol runtime environment is created by a session initiation protocol application developer, and wherein the artificial session initiation protocol runtime environment creates and initializes a selected session initiation protocol application destination state;
sending an artificial session initiation protocol runtime environment constructed by a test harness to a session initiation protocol application to test the session initiation protocol application modular components, wherein the session initiation protocol application modular components load the artificial session initiation protocol runtime environment and send responses to the test harness, and wherein the session initiation protocol application modular components comprise application data, precondition handlers, transition handlers, and postcondition handlers;
responsive to sending the artificial session initiation protocol runtime environment, loading the transition handlers;
transferring control from the artificial session initiation protocol runtime environment to a first transition handler along a selected execution pathway;
simulating a session initiation protocol message, wherein the artificial session initiation protocol runtime environment sends the session initiation protocol message;
determining whether an appropriate session initiation protocol state occurs in response to the simulated session initiation protocol message, wherein the appropriate session initiation protocol state comprises at least one of a particular session initiation protocol application state and a particular session initiation protocol application transition handler;
responsive to an absence of the appropriate session initiation protocol occurring in response to simulating the session initiation protocol message, sending a test failure result to the test harness;
generating a report by the test harness with the test failure result;
responsive to the appropriate session initiation protocol occurring in response to simulating the session initiation protocol message, determining whether another transition handler exists along the selected execution pathway;
responsive to the another transition handler existing along the selected execution pathway, transferring control from the artificial session initiation protocol runtime environment to the another transition handler, wherein transferring control from the artificial session initiation protocol runtime environment to the another transition handler further comprises;
determining whether a second appropriate session initiation protocol state occurs in response to simulating the session initiation protocol message for the another transition handler;
responsive to an absence of the transition handler existing along the selected execution pathway, determining whether an appropriate final execution state is achieved, wherein determining whether an appropriate final execution state is achieved further comprises;
responsive to an absence of the appropriate final execution state, sending for the another transition handler the test failure result to the test harness;
generating the report by the test harness of the test failure result for the another transition handler;
responsive to the appropriate final execution state being achieved, sending a test success result to the test harness; and
generating the report by the test harness containing the test success result.
1 Assignment
0 Petitions
Accused Products
Abstract
A system for testing branch execution and state transition logic in session initiation protocol application modular components. A test harness constructs, sends, and initializes an artificial session initiation protocol runtime environment in order to test session initiation protocol application modular components. The artificial session initiation protocol runtime environment simulates session initiation protocol messages and a determines whether an appropriate session initiation protocol event occurs. Subsequent to determining whether the appropriate session initiation protocol event occurs in response to the simulated session initiation protocol messages, a report of the test results is generated.
45 Citations
1 Claim
-
1. A computer implemented method for testing branch execution and state transition logic in session initiation protocol application modular components, the method comprising:
-
initializing the artificial session initiation protocol runtime environment, wherein the artificial session initiation protocol runtime environment is created by a session initiation protocol application developer, and wherein the artificial session initiation protocol runtime environment creates and initializes a selected session initiation protocol application destination state; sending an artificial session initiation protocol runtime environment constructed by a test harness to a session initiation protocol application to test the session initiation protocol application modular components, wherein the session initiation protocol application modular components load the artificial session initiation protocol runtime environment and send responses to the test harness, and wherein the session initiation protocol application modular components comprise application data, precondition handlers, transition handlers, and postcondition handlers; responsive to sending the artificial session initiation protocol runtime environment, loading the transition handlers; transferring control from the artificial session initiation protocol runtime environment to a first transition handler along a selected execution pathway; simulating a session initiation protocol message, wherein the artificial session initiation protocol runtime environment sends the session initiation protocol message; determining whether an appropriate session initiation protocol state occurs in response to the simulated session initiation protocol message, wherein the appropriate session initiation protocol state comprises at least one of a particular session initiation protocol application state and a particular session initiation protocol application transition handler; responsive to an absence of the appropriate session initiation protocol occurring in response to simulating the session initiation protocol message, sending a test failure result to the test harness; generating a report by the test harness with the test failure result; responsive to the appropriate session initiation protocol occurring in response to simulating the session initiation protocol message, determining whether another transition handler exists along the selected execution pathway; responsive to the another transition handler existing along the selected execution pathway, transferring control from the artificial session initiation protocol runtime environment to the another transition handler, wherein transferring control from the artificial session initiation protocol runtime environment to the another transition handler further comprises; determining whether a second appropriate session initiation protocol state occurs in response to simulating the session initiation protocol message for the another transition handler; responsive to an absence of the transition handler existing along the selected execution pathway, determining whether an appropriate final execution state is achieved, wherein determining whether an appropriate final execution state is achieved further comprises; responsive to an absence of the appropriate final execution state, sending for the another transition handler the test failure result to the test harness; generating the report by the test harness of the test failure result for the another transition handler; responsive to the appropriate final execution state being achieved, sending a test success result to the test harness; and generating the report by the test harness containing the test success result.
-
Specification