CN118626400B - Software testing system for core framework - Google Patents
Software testing system for core framework Download PDFInfo
- Publication number
- CN118626400B CN118626400B CN202411109857.7A CN202411109857A CN118626400B CN 118626400 B CN118626400 B CN 118626400B CN 202411109857 A CN202411109857 A CN 202411109857A CN 118626400 B CN118626400 B CN 118626400B
- Authority
- CN
- China
- Prior art keywords
- component
- server
- file
- client
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
技术领域Technical Field
本发明属于测试技术领域,更具体地说,涉及一种针对核心框架的软件测试系统。The invention belongs to the field of testing technology, and more specifically, relates to a software testing system for a core framework.
背景技术Background Art
CF(Core Framework)核心框架是实现SCA规范的一套基础架构,它定义了构建、集成和管理软件无线电系统所需的基本元素、接口和服务,其旨在实现高度模块化、可配置、可扩展的软件无线电系统;CF通过软硬件分离的设计理念,使得无线电功能可以通过软件更新来适应不断变化的通信技术和标准。The CF (Core Framework) core framework is a set of infrastructure for implementing the SCA specification. It defines the basic elements, interfaces and services required to build, integrate and manage software radio systems. It aims to achieve a highly modular, configurable and extensible software radio system. CF uses the design concept of separating software and hardware to enable radio functions to adapt to changing communication technologies and standards through software updates.
单元测试又称模块测试,是针对程序模块来进行正确性检验的测试工作,能对软件中的最小可测试单元在与程序其他部分相隔离的情况下进行检查和验证,在过程化编程中,一个单元测试就是单个程序、函数、过程。单元测试都是以自动化的方式执行,所以在大量回归测试的场景下执行单元测试,更能提高测试效率。Unit testing, also known as module testing, is a test that verifies the correctness of program modules. It can check and verify the smallest testable unit in the software in isolation from other parts of the program. In procedural programming, a unit test is a single program, function, or process. Unit testing is performed in an automated manner, so performing unit testing in a large number of regression testing scenarios can improve testing efficiency.
目前的CF组件,随着时间的推移在不断的进行更新迭代,其中的组件包括域管理器、设备管理器、应用工厂、应用以及各种服务。而每一个组件的升级,都可能伴随着不同的问题:不兼容其他组件、组件与组件之间的更新不同步、组件与平台不兼容等等问题。因此,目前的核心框架急需一款覆盖面广、针对性强、且完全独立的单元测试系统,去帮助开发人员寻找开发过程中bug。The current CF components are constantly updated and iterated over time, including domain managers, device managers, application factories, applications, and various services. Each component upgrade may be accompanied by different problems: incompatibility with other components, asynchronous updates between components, incompatibility between components and platforms, etc. Therefore, the current core framework urgently needs a unit test system with wide coverage, strong pertinence, and complete independence to help developers find bugs in the development process.
发明内容Summary of the invention
本发明提供了一种针对核心框架的软件测试系统,拟提供一款覆盖面广、针对性强,且完全独立的单元测试系统。The present invention provides a software testing system for a core framework, and intends to provide a unit testing system with wide coverage, strong pertinence, and complete independence.
一种针对核心框架的软件测试系统,包括服务端和客户端;A software testing system for the core framework, including a server and a client;
所述客户端中构建有模拟设备,模拟设备只包含基础参数以及基本的初始和释放功能;A simulation device is built in the client, and the simulation device only includes basic parameters and basic initialization and release functions;
所述客户端将文件系统服务的可执行文件通过CORBA发送到服务端,再由客户端根据可执行文件组织执行参数,并将执行参数通过CORBA发送到服务端,服务端基于接收的可执行文件和执行参数来创建进程,基于所创建的进程来执行带有执行参数的可执行文件;The client sends the executable file of the file system service to the server through CORBA, and then the client organizes execution parameters according to the executable file, and sends the execution parameters to the server through CORBA, the server creates a process based on the received executable file and execution parameters, and executes the executable file with the execution parameters based on the created process;
其中每个执行文件对应一个测试项,每个测试项所对应的测试组件均通过修改xml的启动文件配置,使得每个组件通过程序独立启动。Each execution file corresponds to a test item, and the test components corresponding to each test item are configured by modifying the XML startup file so that each component is started independently through the program.
本发明通过修改xml的启动文件配置,使得每个组件通过程序独立启动,故本发明在测试时会根据测试组件的不同来决定启动组件的数量,能有效降低测试时的资源占用,并且通过客户端将文件系统服务的可执行文件通过CORBA发送到服务端,再由客户端根据可执行文件组织执行参数,并将执行参数通过CORBA发送到服务端,服务端基于接收的可执行文件和执行参数来创建进程,基于所创建的进程来执行带有执行参数的可执行文件;使得只需要通过客户端来键入一次命令即可开始测试;基于此提供一款覆盖面广、针对性强,且完全独立的单元测试系统。The present invention modifies the startup file configuration of xml so that each component is independently started through a program. Therefore, the present invention determines the number of startup components according to the difference of the test components during testing, which can effectively reduce the resource occupation during testing. The client sends the executable file of the file system service to the server through CORBA, and then the client organizes the execution parameters according to the executable file, and sends the execution parameters to the server through CORBA. The server creates a process based on the received executable file and the execution parameters, and executes the executable file with the execution parameters based on the created process. Therefore, the test can be started by typing a command once through the client. Based on this, a unit test system with wide coverage, strong pertinence and complete independence is provided.
优选的,所述服务端和客户端基于对象引用标识符(IOR)或CORBALOC建立通信;Preferably, the server and the client establish communication based on an object reference identifier (IOR) or CORBALOC;
服务端启动后生成连接用的IOR,客户端通过获取IOR或者在服务端开启CORBALOC通信后,直接连接服务端IP。After the server is started, it generates an IOR for connection. The client directly connects to the server IP by obtaining the IOR or starting CORBALOC communication on the server.
优选的,所述服务端包括文件传输模块、轻量级可执行设备模块和COBRA服务端模块;Preferably, the server includes a file transfer module, a lightweight executable device module and a COBRA server module;
其中所述轻量级可执行设备模块包括执行单元(execue单元)、终止单元(terminate单元)、加载单元(load单元)以及卸载单元(unload单元)。The lightweight executable device module includes an execution unit (execue unit), a termination unit (terminate unit), a loading unit (load unit) and an unloading unit (unload unit).
优选的,所述客户端包括CF组件启动配置模块、文件传输与轻量级可执行设备模块以及oe环境异常判断模块;Preferably, the client includes a CF component startup configuration module, a file transfer and lightweight executable device module, and an oe environment abnormality judgment module;
所述CF组件启动配置模块用于初始化参数配置;The CF component startup configuration module is used to initialize parameter configuration;
所述文件传输与轻量级可执行设备模块用于启动待测组件;The file transfer and lightweight executable device module is used to start the component to be tested;
所述oe环境异常判断模块用于判断客户端接收的数据是否异常。The oe environment abnormality judgment module is used to judge whether the data received by the client is abnormal.
优选的,所述CF组件启动配置模块对每个组件构建一个组件类,组件类中存储有对应组件的信息;Preferably, the CF component startup configuration module constructs a component class for each component, and the component class stores information of the corresponding component;
基于所述CF组件启动配置模块对每个组件进行启动前的配置。Based on the CF component startup configuration module, each component is configured before startup.
优选的,所述CF组件启动配置模块对每个组件进行启动前的配置包括:xml文件解析、启动参数设置、类指针添加到Testpart初始化配置中进行统一的组件初始化;Preferably, the CF component startup configuration module performs configuration on each component before startup, including: XML file parsing, startup parameter setting, and adding class pointers to the Testpart initialization configuration to perform unified component initialization;
初始化过程中,初始化的数据返回给测试项中实例的类对象,待所有配置完成后进行统一的组件初始化,Testpart初始化配置逐个执行每个已添加的类指针的初始化函数。During the initialization process, the initialized data is returned to the class object of the instance in the test item. After all configurations are completed, unified component initialization is performed. The Testpart initialization configuration executes the initialization function of each added class pointer one by one.
优选的,所述客户端包括CF单元测试框架;所述CF单元测试框架中整合有测试项;Preferably, the client includes a CF unit test framework; the CF unit test framework integrates test items;
在需要进行测试时,CF单元测试框架根据不同的单元测试项来发送不同的测试资源文件;服务端根据客户端的CF单元测试框架发送的测试资源文件和命令来启动对应的组件进行组件测试。When testing is required, the CF unit test framework sends different test resource files according to different unit test items; the server starts the corresponding component for component testing according to the test resource files and commands sent by the client's CF unit test framework.
优选的,所述测试资源文件包括:XML文件、dtd文件、各组件的可执行文件以及测试所需要的服务端文件。Preferably, the test resource files include: XML files, dtd files, executable files of each component and server files required for testing.
本发明的有益效果至少包括:The beneficial effects of the present invention include at least:
本发明通过修改xml的启动文件配置,使得每个组件通过程序独立启动,故本发明在测试时会根据测试组件的不同来决定启动组件的数量,能有效降低测试时的资源占用,并且通过客户端将文件系统服务的可执行文件通过CORBA发送到服务端,再由客户端根据可执行文件组织执行参数,并将执行参数通过CORBA发送到服务端,服务端基于接收的可执行文件和执行参数来创建进程,基于所创建的进程来执行带有执行参数的可执行文件;使得只需要通过客户端来键入一次命令即可开始测试;基于此提供一款覆盖面广、针对性强,且完全独立的单元测试系统。The present invention modifies the startup file configuration of xml so that each component is independently started through a program. Therefore, the present invention determines the number of startup components according to the difference of the test components during testing, which can effectively reduce the resource occupation during testing. The client sends the executable file of the file system service to the server through CORBA, and then the client organizes the execution parameters according to the executable file, and sends the execution parameters to the server through CORBA. The server creates a process based on the received executable file and the execution parameters, and executes the executable file with the execution parameters based on the created process. Therefore, the test can be started by typing a command once through the client. Based on this, a unit test system with wide coverage, strong pertinence and complete independence is provided.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
图1为本发明实施例提供的系统框架图。FIG. 1 is a system framework diagram provided by an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
为了使本申请所要解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
参见图1所示,一种针对核心框架的软件测试系统,包括服务端和客户端;As shown in FIG1 , a software testing system for a core framework includes a server and a client;
所述客户端中构建有模拟设备,模拟设备只包含基础参数以及基本的初始和释放功能;A simulation device is built in the client, and the simulation device only includes basic parameters and basic initialization and release functions;
所述客户端将文件系统服务的可执行文件通过CORBA发送到服务端,再由客户端根据可执行文件组织执行参数,并将执行参数通过CORBA发送到服务端,服务端基于接收的可执行文件和执行参数来创建进程,基于所创建的进程来执行带有执行参数的可执行文件;The client sends the executable file of the file system service to the server through CORBA, and then the client organizes execution parameters according to the executable file, and sends the execution parameters to the server through CORBA, the server creates a process based on the received executable file and execution parameters, and executes the executable file with the execution parameters based on the created process;
其中每个执行文件对应一个测试项,每个测试项所对应的测试组件均通过修改xml的启动文件配置,使得每个组件通过程序独立启动。Each execution file corresponds to a test item, and the test components corresponding to each test item are configured by modifying the XML startup file so that each component is started independently through the program.
本发明通过修改xml的启动文件配置,使得每个组件通过程序独立启动,故本发明在测试时会根据测试组件的不同来决定启动组件的数量,能有效降低测试时的资源占用,并且通过客户端将文件系统服务的可执行文件通过CORBA发送到服务端,再由客户端根据可执行文件组织执行参数,并将执行参数通过CORBA发送到服务端,服务端基于接收的可执行文件和执行参数来创建进程,基于所创建的进程来执行带有执行参数的可执行文件;使得只需要通过客户端来键入一次命令即可开始测试;基于此提供一款覆盖面广、针对性强,且完全独立的单元测试系统。The present invention modifies the startup file configuration of xml so that each component is independently started through a program. Therefore, the present invention determines the number of startup components according to the difference of the test components during testing, which can effectively reduce the resource occupation during testing. The client sends the executable file of the file system service to the server through CORBA, and then the client organizes the execution parameters according to the executable file, and sends the execution parameters to the server through CORBA. The server creates a process based on the received executable file and the execution parameters, and executes the executable file with the execution parameters based on the created process. Therefore, the test can be started by typing a command once through the client. Based on this, a unit test system with wide coverage, strong pertinence and complete independence is provided.
作为本实施例的一种可能的实现方式,所述服务端和客户端基于IOR或CORBALOC建立通信;As a possible implementation of this embodiment, the server and the client establish communication based on IOR or CORBALOC;
服务端启动后生成连接用的IOR,客户端通过获取IOR或者在服务端开启CORBALOC通信后,直接连接服务端IP。After the server is started, it generates an IOR for connection. The client directly connects to the server IP by obtaining the IOR or starting CORBALOC communication on the server.
作为本实施例的一种可能的实现方式,所述服务端包括文件传输模块、轻量级可执行设备模块和COBRA服务端模块;As a possible implementation of this embodiment, the server includes a file transfer module, a lightweight executable device module and a COBRA server module;
其中所述轻量级可执行设备模块包括execue单元、terminate单元、load单元以及unload单元。The lightweight executable device module includes an execute unit, a terminate unit, a load unit and an unload unit.
作为本实施例的一种可能的实现方式,所述客户端包括CF组件启动配置模块、文件传输与轻量级可执行设备模块以及oe环境异常判断模块;As a possible implementation of this embodiment, the client includes a CF component startup configuration module, a file transfer and lightweight executable device module, and an oe environment abnormality judgment module;
所述CF组件启动配置模块用于初始化参数配置;The CF component startup configuration module is used to initialize parameter configuration;
所述文件传输与轻量级可执行设备模块用于启动待测组件;基于客户端整理相关可执行文件和启动参数,通过load单元将可执行文件加载到服务端,客户端调用execue单元,将启动参数通过execue单元传输给服务端,服务端接收到启动参数后,调用目标组件系统的进程启动函数;例如:linux系统的fork和execv,fork创建进程,execv加载可执行文件和启动参数,基于此达到远程启动进程的目的。在执行完过后,客户端调用terminate单元,终止服务端启动的进程,最后再调用unload单元将服务端加载的文件卸载。The file transfer and lightweight executable device module is used to start the component to be tested; based on the client, the relevant executable files and startup parameters are sorted out, and the executable files are loaded to the server through the load unit. The client calls the execue unit and transmits the startup parameters to the server through the execue unit. After the server receives the startup parameters, it calls the process startup function of the target component system; for example: fork and execv of the Linux system, fork creates a process, execv loads executable files and startup parameters, and the purpose of remotely starting the process is achieved based on this. After execution, the client calls the terminate unit to terminate the process started by the server, and finally calls the unload unit to unload the file loaded by the server.
所述oe环境异常判断模块用于判断客户端接收的数据是否异常。若执行测试项的过程中,服务端跑出异常,服务端会将异常信息通过CORBA传递给客户端,客户端再通过oe环境异常判断去捕获相关异常(try、catch);若为认为制造的异常,则顺利进行测试项;若为非认为制造的异常,则打印异常并结束程序。The oe environment exception judgment module is used to judge whether the data received by the client is abnormal. If the server runs an exception during the execution of the test item, the server will pass the exception information to the client through CORBA, and the client will then capture the relevant exception (try, catch) through the oe environment exception judgment; if it is a manufactured exception, the test item will be carried out smoothly; if it is an unmanufactured exception, the exception will be printed and the program will end.
优选的,所述CF组件启动配置模块对每个组件构建一个组件类,组件类中存储有对应组件的信息;Preferably, the CF component startup configuration module constructs a component class for each component, and the component class stores information of the corresponding component;
优选的,所述CF组件启动配置模块对每个组件进行启动前的配置包括:xml文件解析、启动参数设置、类指针添加到Testpart初始化配置中进行统一的组件初始化;Preferably, the CF component startup configuration module performs configuration on each component before startup, including: XML file parsing, startup parameter setting, and adding class pointers to the Testpart initialization configuration to perform unified component initialization;
其中客户端具有一套自己的组件配置信息类,这些配置信息类共同继承与父类Testpart;例如:DomainManager类,他的类成员会存储dmd.xml的信息;类成员函数中有专门进行初始化和终止的函数。在进行类初始化时,会将自己的类指针存储到父类的动态数组中。最后再由父类调用初始化函数进行统一的初始化,而由于父类的初始化函数是虚函数,因此会进入到子类的初始化函数中,然后进行系列初始化操作。The client has its own set of component configuration information classes, which are inherited from the parent class Testpart; for example, the DomainManager class, whose class members store the information of dmd.xml; the class member functions have functions specifically for initialization and termination. When initializing a class, its own class pointer is stored in the dynamic array of the parent class. Finally, the parent class calls the initialization function for unified initialization. Since the initialization function of the parent class is a virtual function, it will enter the initialization function of the child class and then perform a series of initialization operations.
初始化过程中,初始化的数据返回给测试项中实例的类对象,待所有配置完成后进行统一的组件初始化,Testpart初始化配置逐个执行每个已添加的类指针的初始化函数。During the initialization process, the initialized data is returned to the class object of the instance in the test item. After all configurations are completed, unified component initialization is performed. The Testpart initialization configuration executes the initialization function of each added class pointer one by one.
类在测试项中声明对象,然后测试项调用父类TestPart的虚函数去执行子类的初始化函数;因此,可以通过类对象去访问已初始化的公有数据,或者通过公有成员函数去访问私有成员数据。The class declares an object in the test item, and then the test item calls the virtual function of the parent class TestPart to execute the subclass initialization function; therefore, you can access initialized public data through the class object, or access private member data through public member functions.
这些初始化配置是客户端的初始化,而TestPart初始化配置则是客户端告诉服务端如何启动组件,例如:客户端DomainManager的初始化则是告诉服务端怎么启动域管理器组件。所有的组件则组成了CF平台。These initialization configurations are the initialization of the client, while the TestPart initialization configuration is the client telling the server how to start the component. For example, the initialization of the client DomainManager tells the server how to start the domain manager component. All components constitute the CF platform.
示例性的:Exemplary:
与管理器的初始化,第一步,进行类的初始化,为私有成员进行赋值;第二步,解析dmd文件,将解析到的spd、scd和dtd文件以及域管理器可执行文件添加到Testpart初始化配置中;第三部,设置域管理器的启动参数,并在此添加到自定义的Testpart初始化配置中;初始化的数据均会返回给调用他的测试项,待所有配置完成后,进行统一的组件初始化;Testpart初始化配置会逐个执行每个已添加的初始化配置;像域管理器,则是现将解析的文件发送到服务端,再发送启动参数,最后客户端调用文件传输与轻量级可执行设备模块的execute让服务端启动域管理器组件;The first step is to initialize the class and assign values to private members. The second step is to parse the dmd file and add the parsed spd, scd and dtd files and the domain manager executable file to the Testpart initialization configuration. The third step is to set the startup parameters of the domain manager and add them to the custom Testpart initialization configuration. The initialized data will be returned to the test item that calls it. After all configurations are completed, the unified component initialization will be performed. The Testpart initialization configuration will execute each added initialization configuration one by one. For the domain manager, the parsed file is sent to the server, and then the startup parameters are sent. Finally, the client calls the execute of the file transfer and lightweight executable device module to let the server start the domain manager component.
作为本实施例的一种可能的实施方式,所述客户端包括CF单元测试框架;所述CF单元测试框架中整合有测试项;As a possible implementation of this embodiment, the client includes a CF unit test framework; the CF unit test framework integrates test items;
在需要进行测试时,CF单元测试框架根据不同的单元测试项来发送不同的测试资源文件;服务端根据客户端的CF单元测试框架发送的测试资源文件和命令来启动对应的组件进行组件测试。When testing is required, the CF unit test framework sends different test resource files according to different unit test items; the server starts the corresponding component for component testing according to the test resource files and commands sent by the client's CF unit test framework.
作为本实施例的一种可能的实施方式,所述测试资源文件包括:XML文件、dtd文件、各组件的可执行文件以及测试所需要的服务端文件。As a possible implementation of this embodiment, the test resource file includes: an XML file, a dtd file, executable files of each component, and a server-side file required for the test.
基于本实施例在测试文件系统时,客户端会将文件系统服务的可执行文件通过CORBA发送到服务端,再由客户端组织执行参数,并再次发送到服务端,服务端接收到数据后,比那会创建进程来带参执行文件系统服务的可执行文件;客户端通过域管理器获取文件系统的命令服务,从而与服务端文件系统进行CORBA通信;Based on this embodiment, when testing the file system, the client sends the executable file of the file system service to the server through CORBA, and then the client organizes the execution parameters and sends them to the server again. After receiving the data, the server will create a process to execute the executable file of the file system service with parameters; the client obtains the command service of the file system through the domain manager, thereby performing CORBA communication with the server file system;
传统的模型部署,会一次性启动所有的组件,包括域管理器、设备管理器、设备、应用等等;而如果要测试单个组件并不需要启动全部组件,因此每个测试项所需组件都时独立设计,即通过修改xml的启动文件配置,让每个组件都通过程序独立启动,在测试时无需启动多个组件占用程序资源;例如,在测试与管理器组件时,程序只需要启动域管理器,不再启动设备管理器和应用,能大大降低启动时间。Traditional model deployment will start all components at once, including the domain manager, device manager, devices, applications, etc.; however, if you want to test a single component, you do not need to start all components. Therefore, the components required for each test item are designed independently, that is, by modifying the XML startup file configuration, each component is started independently through the program, and there is no need to start multiple components to occupy program resources during testing; for example, when testing the manager component, the program only needs to start the domain manager, and no longer starts the device manager and application, which can greatly reduce the startup time.
在测试设备时,传统的设备都是在建模软件中创建和生产的,而本实施例在设计时考虑到该点,因此在客户的CF文件传输和启动框架中,构建一个没有实体的模拟设备,仅作为测试时所用的空设备,它具备设备的基础参数,包括identifier、profile,但不具备其他功能,也不会像其他设备一样具有完整的可执行文件,仅仅存在于客户端中,并和其他CF组件启动配置一样,具备最基本的初始化释放;例如,在测试设备管理器的安装和卸载时,无需知道设备的功能,仅需要设备的id,此操作能够降低在测试时的资源占用并能加快测试。When testing devices, traditional devices are created and produced in modeling software, and this embodiment takes this point into consideration during design. Therefore, in the client's CF file transfer and startup framework, a simulation device without an entity is constructed, which is only used as an empty device for testing. It has the basic parameters of the device, including identifier and profile, but no other functions, nor does it have a complete executable file like other devices. It only exists in the client and has the most basic initialization release like other CF component startup configurations. For example, when testing the installation and uninstallation of the device manager, there is no need to know the function of the device, only the device ID is needed. This operation can reduce resource usage during testing and speed up testing.
并且本实施例中CF单元测试框架中的每个测试项均是独立的,其成功失败与否不会影响其他测试项的进行;并且,每个测试项都会单独部署一次模型,测试完成后再关闭,因此避免了因某个测试导致模型的改变或停止,而妨碍其他测试。In addition, in this embodiment, each test item in the CF unit test framework is independent, and its success or failure will not affect the progress of other test items; moreover, each test item will deploy the model separately and close it after the test is completed, thus avoiding the change or stop of the model due to a certain test, which will hinder other tests.
综上所述,本发明相较于传统的测试,会根据测试组件的不同来决定启动组件的数量,能有效降低测试时的资源占用。并且,所有测试都是自动化测试,在启动程序后,只需键入一次命令即可开始测试,测试结束后,程序打印测试时的成功项与失败项,并且,每个错误项还会记录错误出现的程序位置以及错误代码,方便开发人员查看。In summary, compared with traditional tests, the present invention determines the number of startup components according to the different test components, which can effectively reduce the resource usage during testing. In addition, all tests are automated tests. After starting the program, you only need to type a command once to start the test. After the test is completed, the program prints the success and failure items of the test, and each error item also records the program location where the error occurs and the error code, which is convenient for developers to view.
隔离了服务端与客户端,只需要将服务端放到目标平台,在PC机上启动客户端,即可进行测试,不再需要将测试所需的各个组件和xml文件放到服务端,所有的文件均通过客户端发送到服务端,从根本上解决了因服务端模型的不同而导致的测试无法进行的问题。The server and the client are isolated. You only need to put the server on the target platform and start the client on the PC to perform the test. You no longer need to put the various components and XML files required for the test on the server. All files are sent to the server through the client, which fundamentally solves the problem of testing being unable to proceed due to different server models.
以上仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本申请的保护范围之内。The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411109857.7A CN118626400B (en) | 2024-08-14 | 2024-08-14 | Software testing system for core framework |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411109857.7A CN118626400B (en) | 2024-08-14 | 2024-08-14 | Software testing system for core framework |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118626400A CN118626400A (en) | 2024-09-10 |
| CN118626400B true CN118626400B (en) | 2024-11-05 |
Family
ID=92612223
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411109857.7A Active CN118626400B (en) | 2024-08-14 | 2024-08-14 | Software testing system for core framework |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118626400B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111338685A (en) * | 2018-12-19 | 2020-06-26 | 卓望数码技术(深圳)有限公司 | Common component configuration method, device, equipment and storage medium |
| CN114116495A (en) * | 2021-11-30 | 2022-03-01 | 上海商汤临港智能科技有限公司 | Test method and device, electronic equipment and storage medium |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20200174917A1 (en) * | 2018-12-03 | 2020-06-04 | Bank Of America Corporation | Rapid Automation First-pass Testing Framework |
| CN116860636A (en) * | 2023-07-07 | 2023-10-10 | 中国银行股份有限公司 | Unit test code generation method, device, equipment and storage medium |
| CN117931666B (en) * | 2024-01-26 | 2024-07-30 | 中国人民解放军军事科学院系统工程研究院 | System and method for testing core framework of software radio communication equipment |
-
2024
- 2024-08-14 CN CN202411109857.7A patent/CN118626400B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111338685A (en) * | 2018-12-19 | 2020-06-26 | 卓望数码技术(深圳)有限公司 | Common component configuration method, device, equipment and storage medium |
| CN114116495A (en) * | 2021-11-30 | 2022-03-01 | 上海商汤临港智能科技有限公司 | Test method and device, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118626400A (en) | 2024-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109933522B (en) | A test method, test system and storage medium for an automated use case | |
| US10365899B2 (en) | Software defined network controller | |
| US20070234293A1 (en) | Automated software testing framework | |
| CN103336688A (en) | Software integrating method and system oriented to cloud computing software research and development process | |
| CN111782233B (en) | Micro-service multi-scene deployment adaptation design model | |
| KR20050113273A (en) | Test emulation device, test module emulation device, and recording medium recorded with programs for the devices | |
| CN110659198A (en) | Application program test case execution method and device and software test system | |
| CN106897223A (en) | A kind of software kit delivery method and device based on continuous integrating | |
| CN112084008A (en) | Method for rapidly deploying cloud pipe system based on container technology | |
| CN117149253A (en) | Automatic deployment method for software and computing equipment | |
| CN110971478A (en) | Pressure measurement method, device and computing device for cloud platform service performance | |
| CN117041111A (en) | Vehicle cloud function test method and device, electronic equipment and storage medium | |
| US11539612B2 (en) | Testing virtualized network functions | |
| CN116541024A (en) | Static deployment method for software communication architecture | |
| CN116436794A (en) | OPC real-time data integration and control method based on Internet of things model | |
| CN119065694B (en) | A cross-platform visual server firmware concurrent update method and device | |
| CN114430385B (en) | Network equipment detection method and device and electronic equipment | |
| CN115357258A (en) | Application deployment method and device, storage medium and electronic device | |
| CN118626400B (en) | Software testing system for core framework | |
| US7434041B2 (en) | Infrastructure for verifying configuration and health of a multi-node computer system | |
| WO2020000810A1 (en) | Application component construction packaging method and device, and computer storage medium | |
| CN116660673A (en) | Server production test method, device, electronic equipment and storage medium | |
| CN111338962A (en) | CNI system equipment testing software component design method | |
| CN114138411A (en) | All-in-one machine deployment method, all-in-one machine, device and medium | |
| US20030236873A1 (en) | Method, a network application server, a network element, and a computer software product for automatic configuration, installation, and maintenance of network applications |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |