×

Methods, systems, and computer readable media for automated generation of test files and testing network equipment using same

  • US 10,268,570 B2
  • Filed: 05/05/2016
  • Issued: 04/23/2019
  • Est. Priority Date: 05/05/2016
  • Status: Active Grant
First Claim
Patent Images

1. A method for automated generation of test files and for related testing, the method comprising:

  • at a test file generator, wherein the test file generator is implemented using the at least one processor, wherein the test file generator is configured for automating the generation of directories for storing test files based on a configuration file;

    receiving the configuration file, where the configuration file indicates a test case or a test plan to be generated, wherein the configuration file includes a feature identifier or a bug identifier and information about a system under test (SUT), wherein the configuration file includes a plurality of test action data elements indicating a sequence of test actions for testing software of the SUT, a plurality of path data elements indicating directories for storing test files, and a plurality of test input data elements indicating valid and invalid input for testing;

    generating the test files based on the configuration file and at least one test file template, wherein generating the test files includes parsing the configuration file, identifying the data elements in the configuration file, and using the identified data elements and the at least one test file template to generate the test files, wherein a first test file generated contains the sequence of test actions for testing a feature or a bug in the SUT associated with the feature identifier or the bug identifier in the configuration file, wherein a second test file generated contains valid input for testing the SUT, and wherein a third test file generated contains invalid input for testing the SUT;

    generating the directories in a file system based on the configuration file, wherein generating the directories includes generating, based on a first path data element of the plurality of path data elements, a first directory for storing the first test file and generating, based on a second path data element of the plurality of path data elements, a subdirectory of the first directory for storing the second test file and the third test file, wherein the generated directories are in a hierarchical directory structure associated with the feature identifier or the bug identifier in the configuration file, wherein each of the generated directories are named using a format that indicates the feature or the bug to be tested;

    storing the test files in the directories, wherein storing the files in the directories includes storing the first test file in the first directory and storing, in the subdirectory of the first directory, the second test file and the third test file, wherein the first test file is named using a format that indicates the feature or the bug to be tested associated with the feature identifier or the bug identifier in the configuration file, wherein the second test file is named using a format that indicates that the second test file includes valid input, and wherein the third test file is named using a format that indicates that the third test file includes invalid input; and

    testing the feature or bug in the SUT using the test files, wherein testing the feature or bug in the SUT includes executing, by at least one computer, the sequence of test actions from the first test file using the valid input from the second test file and the invalid input from the third test file.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×