Method and system for testing application modules using static tests from a test suite
AssigneeSap SE
InventorsVioleta Georgieva, Nikolai Dokovski
Life of this patent
Estimating the term…
Abstract
A method and a system for validating a plurality of files via static tests from a test suite are described. The method includes selecting a plurality of static tests from a test suite, executing the plurality of static tests on a plurality of files to validate the plurality of files, and storing records after executing the plurality of static tests to record the validation of the plurality of files. The system includes an application, a plurality of files inside the application, the plurality of files to describe and configure the application, a plurality of static tests to validate the plurality of files, and a framework to apply the plurality of static tests to the plurality of files.
Claims29
A computer-implemented method comprising:
- selecting, by a processor of the computer, a plurality of static tests from a test suite;
- based on the selected plurality of static tests, determining, by the processor of the computer, validity of a plurality of files inside an application, wherein determining validity of the plurality of files includes:
- executing, by the processor of the computer, a first subset of the plurality of static tests on the plurality of files for checking the plurality of files inside the application;
- based on a result of execution of the first subset of the plurality of static tests, building, by the processor of the computer, a model including annotation information and deployment descriptor of the application;
- forwarding the built model to a second subset of the plurality of static tests, from a plurality of file type specific tests, corresponding to a file type of the plurality of files;
- and
- executing, by the processor of the computer, the second subset of the plurality of static tests on the built model;
- and
- storing, in a memory of the computer, records including the validity of the plurality of files determined based on a result of execution of the first and the second subset of the plurality of static tests.
A computing system comprising:
- a processor;
- and
- a memory coupled to the processor storing program code, the program code comprising:
- an application;
- a plurality of files inside the application, the plurality of files to describe and configure the application;
- a first subset of a plurality of static tests to execute the plurality of files for checking the plurality of files inside the application;
- a model including annotation information and deployment descriptor of the application, wherein the model is built based on result of execution of the first subset of the plurality of tests;
- a second subset of the plurality of static tests configured to execute the built model, wherein the built model is forwarded to the second subset of the plurality of static tests, from a plurality of file type specific tests, corresponding to a file type of the plurality of files;
- and
- a framework to apply the plurality of static tests to the plurality of files.
A non-transitory machine-readable medium having instructions therein that when executed by the machine, cause the machine to:
- select a plurality of static tests from a test suite;
- based on the selected plurality of static tests, determine validity of a plurality of files inside an application, wherein steps to determine validity of the plurality of files includes:
- execute a first subset of the plurality of static tests on the plurality of files for checking the plurality of files inside the application;
- based on a result of execution of the first subset of the plurality of static tests, build a model including annotation information and deployment descriptor of the application;
- forward the built model to a second subset of the plurality of static tests, from a plurality of file type specific tests, corresponding to a file type of the plurality of files;
- and
- execute the second subset of the plurality of tests on the built model;
- and
- store records including the validity of the plurality of files determined based on a result of execution of the first and the second subset of the plurality of static tests.
Dependencies are inferred from the claim text.