CN115544784A - Multi-tenant virtual test method and device, electronic equipment and storage medium - Google Patents

Multi-tenant virtual test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115544784A
CN115544784A CN202211278995.9A CN202211278995A CN115544784A CN 115544784 A CN115544784 A CN 115544784A CN 202211278995 A CN202211278995 A CN 202211278995A CN 115544784 A CN115544784 A CN 115544784A
Authority
CN
China
Prior art keywords
test
virtual
tenant
tested
item
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.)
Pending
Application number
CN202211278995.9A
Other languages
Chinese (zh)
Inventor
陈永刚
吴凤秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikexin Beijing Technology Co ltd
Original Assignee
Taikexin Beijing Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Taikexin Beijing Technology Co ltd filed Critical Taikexin Beijing Technology Co ltd
Priority to CN202211278995.9A priority Critical patent/CN115544784A/en
Publication of CN115544784A publication Critical patent/CN115544784A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/02CAD in a network environment, e.g. collaborative CAD or distributed simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/14Force analysis or force optimisation, e.g. static or dynamic forces

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Architecture (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of human computer aided engineering analysis, and provides a multi-tenant virtual test method, a device, electronic equipment and a storage medium, which are applied to a software as a service (SaaS) application server, wherein the method comprises the following steps: receiving a virtual test request of a tenant, wherein the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested; sending the virtual test request to a task queue for waiting, and inputting the virtual model information in the analysis request into predetermined third-party commercial software for virtual test and obtaining a test result when the waiting arrives; and returning a test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant. The method and the system can reduce the use difficulty of medium and small enterprises for using the third-party commercial software, can spread the use fee of the third-party commercial software by multiple enterprises, and save the cost.

Description

Multi-tenant virtual test method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a multi-tenant virtual test method and device, electronic equipment and a storage medium.
Background
The national standard and the industrial standard are the basic guarantee of quality certification of electrical and electronic products. Electrotechnical and electronic products must meet a series of relevant national test standards and specifications to be able to obtain market admission licenses.
In the production research and development of electrical and electronic products, in order to shorten the certification period, the current general practice is to adopt simulation analysis software to perform numerical simulation analysis to achieve the purpose of evaluation and optimization for the evaluation of the structural performance in the product design.
Currently, the mainstream simulation analysis software is mainly commercial software developed by american and european companies, such as ANSYS, abaqus, hyperWorks, nastran, etc., and these software suites are provided in the form of software licenses, with the price of each suite being hundreds of thousands and millions, and with a certain maintenance cost each year. In recent years, the price of high-performance computers has gradually decreased with the increase of the hardware capacity of the computers, but in the construction of the simulation analysis capacity, the simulation calculation, the storage and the data management also need a fixed investment. Therefore, the research and development enterprises need to invest in large manpower, financial resources and material resources for establishing the numerical simulation capability.
Therefore, the current computer aided analysis tool is mainly adopted by large-scale production and research and development enterprises in the electronic and electrician industry, and for the reason of cost, numerical simulation analysis cannot really enter the production research and development process of numerous micro production type enterprises or pioneering companies.
Disclosure of Invention
The invention provides a multi-tenant virtual test method, a multi-tenant virtual test device, electronic equipment and a storage medium, which are used for solving the problem of high cost in simulation analysis in the prior art.
In a first aspect, the present invention provides a multi-tenant virtual test method, including:
receiving a virtual test request of a tenant, wherein the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested;
sending the virtual test request to a task queue for waiting, and inputting the virtual model information in the analysis request into predetermined third-party commercial software for virtual test and obtaining a test result when the waiting arrives;
and returning the test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant.
In one embodiment, the sending the virtual test request to the task queue for a turn comprises: and after the virtual test request is added to the task queue, sequencing the task queue, sequentially adopting the commercial software of the preset third party to perform virtual test according to the sequencing sequence and acquiring a test result.
In one embodiment, the sorting the task queue includes:
sequencing the task queues in a first-come-first-serve mode; or
And sequencing the task queues in a shortest operation priority mode.
In an embodiment, the virtual test request further carries a priority level of the item to be tested;
ordering the task queue comprises:
the task queues are grouped according to the tenants to which the tasks belong, and at least one task in each group is sorted according to the priority level of the item to be tested to which the task belongs
In an embodiment, before receiving the virtual test request of the tenant, the method further includes: and generating the virtual model information of the product to be detected based on the geometric data and material information of all parts of the product to be detected and all assembly information of the product to be detected.
In an embodiment, before generating the virtual model information of the product to be tested based on the geometric data and material information of all parts of the product to be tested and all assembly information of the product to be tested, the method further includes:
acquiring all geometric data of a product to be detected to obtain a geometric data set, and geometrically presenting the geometric data set on an interface;
acquiring all part information of the product to be detected to obtain a part information set, wherein the part information at least comprises part names and part materials, and displaying the part names in the part information set on an interface;
in response to a user selecting any part name and specifying a piece of geometry data on the geometry rendering, binding the geometry data to the part;
and acquiring all assembly information of the product to be tested, wherein any assembly information at least comprises two parts and the connection mode of the two parts.
In an embodiment, the virtual test includes any one of the following:
static load test, impact test, vibration test, insertion force test, separation force test, mechanical life test and overload test;
the predetermined third-party commercial software comprises any one of the following: ANSYS, abaqus, hyperworks, and Nastran.
In a second aspect, the present invention provides a multi-tenant virtual test apparatus configured in a software as a service (SaaS) application server, the apparatus including:
the virtual test system comprises a request receiving unit, a virtual test unit and a virtual model generating unit, wherein the request receiving unit is used for receiving a virtual test request of a tenant, and the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested;
the request processing unit is used for sending the virtual test request to a task queue for waiting, inputting the virtual model information in the analysis request into commercial software of a preset third party for virtual test when the waiting arrives, and acquiring a test result;
and the result returning unit is used for returning the test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant.
In one embodiment, the waiting for sending the virtual test request to the task queue comprises:
and the virtual testing module is used for sequencing the task queue after the virtual testing request is added to the task queue, sequentially adopting the predetermined third-party commercial software to perform virtual testing according to the sequencing order and acquiring a testing result.
In an embodiment, the request processing unit is configured to order the task queue, and includes:
the system is used for sequencing the task queues in a first-come-first-serve mode; or
And the task queue is sequenced in a shortest operation priority mode.
In an embodiment, the virtual test request further carries a priority level of the item to be tested;
the request processing unit is used for sequencing the task queue and comprises:
the task queue is divided into groups according to the tenants to which the tasks belong, and at least one task in each group is sorted according to the priority level of the item to be tested to which the task belongs
In an embodiment, the apparatus further includes a request generation unit, configured to, before receiving the virtual test request of the tenant:
and generating the virtual model information of the product to be detected based on the geometric data and material information of all parts of the product to be detected and all assembly information of the product to be detected.
In an embodiment, the request generating unit is further configured to, before generating the virtual model information of the product to be tested based on the geometric data and material information of all parts of the product to be tested and all assembly information of the product to be tested:
acquiring all geometric data of a product to be tested to obtain a geometric data set, and geometrically presenting the geometric data set on an interface;
acquiring all part information of the product to be detected to obtain a part information set, wherein the part information at least comprises part names and part materials, and displaying the part names in the part information set on an interface;
binding geometry data to the part in response to a user selecting any part name and specifying the geometry data on the geometry rendering;
and acquiring all assembly information of the product to be tested, wherein any assembly information at least comprises two parts and a connection mode of the two parts.
In an embodiment, the virtual test includes any one of the following:
static load test, impact test, vibration test, insertion force test, separation force test, mechanical life test, and overload test;
the predetermined third party commercial software may include any one of: ANSYS, abaqus, hyperWorks, and Nastran.
In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the multi-tenant virtual test method as described in any one of the above.
In a fourth aspect, the present invention provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a multi-tenant virtual test method as described in any one of the above.
The multi-tenant virtual test method, the device, the electronic equipment and the storage medium provided by the invention are applied to a software as a service (SaaS) application server, after receiving a virtual test request of a tenant, the virtual test request is sent to a task queue for waiting, and when the waiting arrives, virtual model information in the analysis request is input into commercial software of a preset third party for virtual test and a test result is obtained; the test result is carried with the user identification of the tenant and the item identification of the item to be tested and returned to the tenant, so that the use difficulty of the third-party commercial software used by medium and small enterprises can be reduced, the use fee of the third-party commercial software can be spread by multiple enterprises, and the cost is saved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a multi-tenant virtual test method provided in the present invention;
FIG. 2 is a schematic flow chart diagram illustrating another multi-tenant virtual testing method provided by the present invention;
FIG. 3 is a schematic view of a user interface corresponding to a multi-tenant virtual test method provided by the present invention;
FIG. 4 is a schematic structural diagram of a multi-tenant virtual testing apparatus provided in the present invention;
FIG. 5 is a schematic structural diagram of another multi-tenant virtual test apparatus provided by the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical scheme of the invention is applied to a software as a service (SaaS) application server, namely, the service for calling commercial software of a third party to provide virtual tests for a plurality of tenants and a plurality of test items thereof is provided through a network, wherein the predetermined commercial software of the third party comprises but is not limited to ANSYS, abaqus, hyperWorks, nastran and the like.
A flow of the multi-tenant virtual test method provided in the first embodiment of the present invention is shown in fig. 1, and includes:
in step S110: receiving a virtual test request of a tenant, wherein the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested.
The technical solution described in this embodiment can provide a service of virtual testing for multiple tenants, each tenant can implement one or more test items, and each test item can perform one or more types of virtual tests based on the virtual model information of the product to be tested, including but not limited to static load testing, impact testing, vibration testing, insertion force testing, separation force testing, mechanical life testing, overload testing, and the like.
The generation mode of the virtual model information of the product can include multiple formats, the formats of the virtual model information need to meet the requirement of a preset data format that commercial software of a third party can automatically batch-process and run, and as a priority, the formats of the virtual model information can also meet the requirement of a universal data format that commercial software of multiple third parties can automatically batch-process and run.
In step S120: and sending the virtual test request to a task queue for waiting, and inputting the virtual model information in the analysis request into predetermined third-party commercial software for virtual test and obtaining a test result when the waiting arrives.
Since the SaaS model supports multiple tenants and each tenant can run one or more test items, after receiving a specific test item of a specific tenant, the SaaS application server may have task queues to be tested, and it is necessary to determine all task queues to be subjected to virtual testing according to a predetermined queue waiting rule to sort the task queues to be subjected to virtual testing, so as to provide smooth SaaS service.
The task queue may be sorted in various ways, and this embodiment does not limit the specific sorting way. For example, the task queues may be ordered in a first come first serve manner; or the task queues can be sorted in a shortest operation priority mode; or the task queues can be grouped first, and each group is sorted by adopting a preset scheduling method according to different preset absolute priorities.
The time for sorting the task queue may also be selected from various times, which is not limited in this embodiment. For example, after the virtual test request is added to the task queue, the task queue after the new task is added may be sorted; as another example, the task queue may be reordered periodically; if the preset ordering triggering condition is met, the task queue can be reordered; if the virtual test request also carries the priority level of the item to be tested, the task queues can be grouped according to the tenants to which the tasks belong, and at least one task in each group is sorted according to the priority level of the item to be tested to which the task belongs
After the task queues are sorted, sequentially adopting the predetermined third-party commercial software to perform virtual testing according to the sorting sequence and obtaining the testing result output by the third-party commercial software.
In step S130: and returning the test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant.
After the test result output by the commercial software of the third party is obtained, the test result, which carries the user identifier of the tenant and the item identifier of the item to be tested, needs to be returned to the tenant, so that the test result corresponds to the corresponding tenant and the item, and sometimes, in order to display the need, the item information such as the test progress of each item of the tenant needs to be displayed on a management interface of the tenant according to the returned information. Fig. 3 is a schematic diagram of a user interface corresponding to the multi-tenant virtual test method provided by the present invention, and as shown in fig. 3, information update and information display can be performed on all test items of each tenant in real time according to information returned to the tenant, so that each tenant can conveniently grasp the completion rate and test result of each test item in real time.
In the multi-tenant virtual test method of this embodiment, after receiving a virtual test request of a tenant, the virtual test request is sent to a task queue for waiting, and when the waiting arrives, virtual model information in the analysis request is input to a predetermined third-party commercial software for virtual test and a test result is obtained; the test result is carried with the user identification of the tenant and the item identification of the item to be tested and returned to the tenant, so that the use difficulty of the third-party commercial software used by medium and small enterprises can be reduced, the use fee of the third-party commercial software can be spread by multiple enterprises, and the cost is saved.
A flow of the multi-tenant virtual test method provided in the second embodiment of the present invention is shown in fig. 2, and includes:
in step S210: and generating virtual model information of the product to be detected based on the geometric data and material information of all parts of the product to be detected and all assembly information of the product to be detected.
The step is used for acquiring the virtual model information of the product to be detected, the geometric data and material information of all parts of the product to be detected and all assembly information of the product to be detected are used, and the acquisition of the information can adopt various modes, and the embodiment does not limit the information.
For example, for the acquisition of the geometric data and material information of all parts of the product to be tested, all the geometric data of the product to be tested can be acquired to obtain a geometric data set, and the geometric data set is geometrically presented on an interface; acquiring all part information of the product to be detected to obtain a part information set, wherein the part information at least comprises part names and part materials, and displaying the part names in the part information set on an interface; in response to a user selecting any part name and specifying a piece of geometry data on the geometry rendering, the geometry data is bound to the part.
The electrical and electronic product includes at least one type of part, and the geometric data of each part is the appearance data information of the part, such as entity, point, line, surface, etc. The geometric data of all parts of the product form a geometric data set of the product. The method described in this embodiment may be used to perform geometric presentation on parts included in a product in a GUI interface, where a specific presentation policy may be different according to a specific application scenario, for example, geometric presentation may be performed on the parts included in the product in the same GUI interface, or geometric presentation may also be performed on the parts included in the product in batches or in blocks in the GUI interface, and the like.
The part information of the product to be tested may include a plurality of types, at least the part name and the part material, and the part name in the part information set needs to be presented on the interface, so that the user can intuitively specify which geometric data of each part specifically corresponds to in step S110 through the interface.
The material of the part of the product to be tested may be a file in which material information of the part is directly imported to load the material of each part into the system and present the material on the GUI interface, or may be a file in which the material information of the part is loaded into the system and presented on the GUI interface.
The association of the geometric data and the parts can be realized in various ways, for example, a project can be newly established, and the geometric data of the product can be imported. That is, the imported geometry data is acquired, and the list of imported "geometry" instances is added to the "geometry" attributes of the item instances. A parts list of project instances is generated, creating several "parts" instances. And adds the generated "parts" instance list to the "parts" attribute of the project data object. And selecting a specified 'geometric' example through a GUI interface, and putting the specified 'geometric' example into a specified 'part' example. In the "geometry" attribute of the "part" instance, the specified "geometry" instance is defined.
It should be noted that any assembly information of the product to be tested at least includes two parts and a connection mode of the two parts, for example, a screw connection is designated between the designated part a and the designated part b, and a screw is designated; and (3) designating the welding between the part A and the part C, and designating respective welding surfaces. Co-injection molding is carried out between the part C and the part D, and the like.
The generation mode of the virtual model information of the product to be tested can include multiple modes, and the virtual model information can be in a data format which supports that commercial software of the third party can automatically run in a batch mode, or can also be in a general data format which simultaneously supports that commercial software of multiple third parties can automatically run in a batch mode.
In step S220: receiving a virtual test request of a tenant, wherein the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested, virtual assembly information of a product to be tested, and a priority level of the item to be tested.
Compared with step S110 in the embodiment shown in fig. 1, this step supports that the tenant carries the priority level of the items to be tested when sending the virtual test request to the SaaS system, so as to facilitate queuing processing according to the priority level of the test items when testing each test item, and can support the tenant to set different priority levels according to information such as the importance degree and the urgency degree of the test items, support priority processing of important and urgent test items for the tenant, and post-processing of unimportant and non-urgent test items, so as to avoid queuing all test items together and neglecting differences of the test items themselves or urgency differences of result requirements of users on each test item. Fig. 3 shows a schematic view of a user interface corresponding to a multi-tenant virtual test method supporting multiple tenants and multiple projects, as shown in fig. 3, a tenant has four projects, namely, a project 01, a project 02, a project 03, and a project 04, where the project 01 and the project 04 are urgent projects, and the project 02 and the project 03 are normal projects.
In step S230: and after the virtual test request is added to the task queue, the task queue is firstly grouped according to the tenant to which the task queue belongs, and at least one task in each group is sequenced according to the priority level of the item to be tested to which the task belongs.
As shown in fig. 3, a tenant has four items, namely, item 01, item 02, item 03, and item 04, where item 01 and item 04 are urgent items and item 02 and item 03 are normal items, and when the four items of the tenant are sorted, it is necessary to process the urgent item 01 and the urgent item 04 first and process the normal item 02 and the normal item 03 later.
It should be noted that the specific form of the priority level of the project may be different according to different requirements of specific applications, and may be simply distinguished by "urgent" and "normal", and may also be distinguished more accurately by setting an emergency coefficient, which is not limited in this embodiment.
In step S240: and inputting the virtual assembly information in the analysis request into the commercial software of a preset third party for virtual test when the waiting arrives, and acquiring a test result.
It should be noted that, when performing virtual testing on an electrical and electronic product, the specific test type may be determined by itself according to the test requirement, including but not limited to a static load test, an impact test, a vibration test, an insertion force test, a separation force test, a mechanical life test, an overload test, and the like. The technical solution of this embodiment does not limit the specific test types, and can support all the test types that the predetermined third-party commercial software can support.
The predetermined third party commercial software includes, but is not limited to, ANSYS, abaqus, hyperWorks, nastran, and the like.
In step S250: and returning the test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant.
This step is the same as step S130 in the embodiment shown in fig. 1, and this embodiment will not be described again.
On the basis of the previous embodiment, the tenant is supported to carry the priority level of the item to be tested when sending the virtual test request to the SaaS system, so that the SaaS application server can queue all test items according to the priority level of the test items when testing the test items, thereby avoiding queuing rounds of all test items all at once and ignoring differences and urgency differences of the test items, and improving the service quality.
In the following, the data storage apparatus provided by the present invention is described, and the data storage apparatus described below and the multi-tenant virtual test method described above may be referred to in correspondence with each other.
A multi-tenant virtual test apparatus provided in a third embodiment of the present invention is configured to a software as a service (SaaS) application server, and includes a request receiving unit 410, a request processing unit 420, and a result returning unit 430, as shown in fig. 4.
The request receiving unit 410 is configured to receive a virtual test request of a tenant, where the virtual test request carries at least a user identifier of the tenant, an item identifier of an item to be tested, and virtual model information of a product to be tested.
The request processing unit 420 is configured to send the virtual test request to a task queue for waiting, input the virtual model information in the analysis request into a predetermined third-party commercial software for virtual testing when the waiting arrives, and obtain a test result.
The result returning unit 430 is configured to return the test result carrying the user identifier of the tenant and the item identifier of the item to be tested to the tenant.
According to one or more embodiments of the present disclosure, the waiting for sending the virtual test request into the task queue by the request processing unit comprises:
and the virtual testing module is used for sequencing the task queue after the virtual testing request is added to the task queue, sequentially adopting the predetermined third-party commercial software to perform virtual testing according to the sequencing order and acquiring a testing result.
According to one or more embodiments of the present disclosure, the request processing unit for ordering the task queue includes: the system is used for sequencing the task queues in a first-come-first-serve mode; or the task queues are sorted in a shortest job priority mode.
According to one or more embodiments of the present disclosure, the virtual test request further carries a priority level of the item to be tested;
the request processing unit is used for sequencing the task queue and comprises: the task queue is used for firstly grouping the task queue according to the tenant to which the task queue belongs, and sequencing all groups according to the priority level of the items to be tested to which the task queue belongs.
According to one or more embodiments of the present disclosure, the virtual test includes any one of: static load test, impact test, vibration test, insertion force test, separation force test, mechanical life test and overload test;
the predetermined third-party commercial software comprises any one of the following: ANSYS, abaqus, hyperWorks, and Nastran.
The multi-tenant virtual test apparatus described in this embodiment can implement the multi-tenant virtual test method described in fig. 1 to fig. 3, and has the same technical effects, which are not described herein again.
A multi-tenant virtual test apparatus according to a fourth embodiment of the present invention is, as shown in fig. 5, configured in a software as a service (SaaS) application server, and includes: a request generating unit 510, a request receiving unit 520, a request processing unit 530, and a result returning unit 540.
The request generating unit 510 is configured to generate the virtual model information of the product to be tested based on the geometric data and material information of all parts of the product to be tested and all assembly information of the product to be tested before receiving a virtual test request of a tenant.
The request receiving unit 520 is configured to receive a virtual test request of a tenant, where the virtual test request carries at least a user identifier of the tenant, an item identifier of an item to be tested, and virtual model information of a product to be tested.
The request processing unit 530 is configured to send the virtual test request to a task queue for waiting, and when the waiting arrives, input the virtual model information in the analysis request into a predetermined third-party commercial software to perform a virtual test and obtain a test result.
The result returning unit 540 is configured to return the test result carrying the user identifier of the tenant and the item identifier of the item to be tested to the tenant.
According to one or more embodiments of the present disclosure, the request processing unit 530 is configured to further perform sorting on the task queue after the virtual test request is added to the task queue, perform virtual testing sequentially by using the predetermined third-party commercial software according to the sorting order, and obtain a test result.
In accordance with one or more embodiments of the present disclosure, the request processing unit 530 is configured for ordering the task queue including: the system is also used for sequencing the task queues in a first-come-first-serve mode; or the task queue is also used for sequencing the task queue in a shortest operation priority mode.
According to one or more embodiments of the present disclosure, the virtual test request further carries a priority level of the item to be tested;
the request processing unit is used for sequencing the task queue and comprises:
the task queue is used for firstly grouping the task queue according to the tenant to which the task queue belongs, and sequencing at least one task contained in each group according to the priority level of the item to be tested to which the task queue belongs.
According to one or more embodiments of the present disclosure, the request generating unit 510 is configured to, before generating the virtual model information of the product to be tested based on the geometric data and material information of all parts of the product to be tested and all assembly information of the product to be tested: acquiring all geometric data of a product to be tested to obtain a geometric data set, and geometrically presenting the geometric data set on an interface; acquiring all part information of the product to be detected to obtain a part information set, wherein the part information at least comprises part names and part materials, and displaying the part names in the part information set on an interface; binding geometry data to the part in response to a user selecting any part name and specifying the geometry data on the geometry rendering; and acquiring all assembly information of the product to be tested, wherein any assembly information at least comprises two parts and a connection mode of the two parts.
According to one or more embodiments of the present disclosure, the virtual test includes any one of: static load test, impact test, vibration test, insertion force test, separation force test, mechanical life test and overload test;
the predetermined third party commercial software may include any one of: ANSYS, abaqus, hyperWorks, and Nastran.
The multi-tenant virtual test apparatus described in this embodiment can implement the multi-tenant virtual test method described in fig. 1 to fig. 3, and has the same technical effects, which are not described herein again.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor) 610, a communication Interface 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 complete communication with each other through the communication bus 640. Processor 610 may invoke logic instructions in memory 630 to execute a multi-tenant virtual test method comprising:
receiving a virtual test request of a tenant, wherein the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested;
sending the virtual test request to a task queue for waiting, inputting the virtual model information in the analysis request into a predetermined third-party commercial software for virtual test and acquiring a test result when the waiting arrives;
and returning a test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, where the computer program product includes a computer program, the computer program may be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer is capable of executing the multi-tenant virtual test method provided by the above methods, and the method includes:
receiving a virtual test request of a tenant, wherein the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested;
sending the virtual test request to a task queue for waiting, inputting the virtual model information in the analysis request into a predetermined third-party commercial software for virtual test and acquiring a test result when the waiting arrives;
and returning a test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the multi-tenant virtual testing method provided by the above methods, the method including:
receiving a virtual test request of a tenant, wherein the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested;
sending the virtual test request to a task queue for waiting, and inputting the virtual model information in the analysis request into predetermined third-party commercial software for virtual test and obtaining a test result when the waiting arrives;
and returning a test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A multi-tenant virtual test method applied to a software as a service (SaaS) application server, the method comprising:
receiving a virtual test request of a tenant, wherein the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested;
sending the virtual test request to a task queue for waiting, and inputting the virtual model information in the analysis request into predetermined third-party commercial software for virtual test and obtaining a test result when the waiting arrives;
and returning the test result carrying the user identification of the tenant and the item identification of the item to be tested to the tenant.
2. The method of claim 1, wherein sending the virtual test request to a task queue for a turn comprises:
and after the virtual test request is added to the task queue, sequencing the task queue, sequentially adopting the predetermined third-party commercial software to perform virtual test according to the sequencing sequence, and acquiring a test result.
3. The method of claim 2, wherein ordering the task queue comprises:
sequencing the task queues in a first-come-first-serve mode; or alternatively
And sequencing the task queues in a shortest operation priority mode.
4. The method of claim 2, wherein the virtual test request further carries a priority level of the item to be tested;
ordering the task queue comprises:
the task queues are grouped according to the tenants to which the tasks belong, and at least one task in each group is sequenced according to the priority level of the item to be tested to which the task belongs.
5. The method of claim 1, further comprising, prior to receiving the virtual test request of the tenant:
and generating the virtual model information of the product to be detected based on the geometric data and the material information of all parts of the product to be detected and all assembly information of the product to be detected.
6. The method of claim 5, further comprising, before generating the virtual model information of the product to be tested based on the geometric data and material information of all parts of the product to be tested and all assembly information of the product to be tested:
acquiring all geometric data of a product to be detected to obtain a geometric data set, and geometrically presenting the geometric data set on an interface;
acquiring all part information of the product to be detected to obtain a part information set, wherein the part information at least comprises part names and part materials, and displaying the part names in the part information set on an interface;
binding geometry data to the part in response to a user selecting any part name and specifying the geometry data on the geometry rendering;
and acquiring all assembly information of the product to be tested, wherein any assembly information at least comprises two parts and the connection mode of the two parts.
7. The method of claim 1, wherein the virtual test comprises any one of:
static load test, impact test, vibration test, insertion force test, separation force test, mechanical life test, and overload test;
the predetermined third party commercial software may include any one of: ANSYS, abaqus, hyperworks, and Nastran.
8. A multi-tenant virtual test apparatus, configured at a software as a service (SaaS) application server, the apparatus comprising:
the virtual test system comprises a request receiving unit, a virtual test unit and a virtual model generating unit, wherein the request receiving unit is used for receiving a virtual test request of a tenant, and the virtual test request at least carries a user identifier of the tenant, an item identifier of an item to be tested and virtual model information of a product to be tested;
the request processing unit is used for sending the virtual test request to a task queue for waiting, inputting the virtual model information in the analysis request into predetermined third-party commercial software for virtual test when the waiting arrives, and acquiring a test result;
and the result returning unit is used for returning the test result carrying the user identifier of the tenant and the item identifier of the item to be tested to the tenant.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for virtually testing an electrical and electronic product according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for virtually testing an electrical and electronic product according to any one of claims 1 to 7.
CN202211278995.9A 2022-10-19 2022-10-19 Multi-tenant virtual test method and device, electronic equipment and storage medium Pending CN115544784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211278995.9A CN115544784A (en) 2022-10-19 2022-10-19 Multi-tenant virtual test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211278995.9A CN115544784A (en) 2022-10-19 2022-10-19 Multi-tenant virtual test method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115544784A true CN115544784A (en) 2022-12-30

Family

ID=84734625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211278995.9A Pending CN115544784A (en) 2022-10-19 2022-10-19 Multi-tenant virtual test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115544784A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370674A1 (en) * 2014-06-19 2015-12-24 Microsoft Corporation Tenant provisioning for testing a production multi-tenant service
CN109558446A (en) * 2018-12-13 2019-04-02 杭州数梦工场科技有限公司 Job request method, apparatus, electronic equipment and storage medium
CN112596857A (en) * 2020-12-25 2021-04-02 北京知因智慧科技有限公司 Method, device, equipment and medium for isolating SaaS multi-tenant data
CN113873449A (en) * 2021-09-15 2021-12-31 北京仁科互动网络技术有限公司 Short message sending method, cloud service system, electronic device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370674A1 (en) * 2014-06-19 2015-12-24 Microsoft Corporation Tenant provisioning for testing a production multi-tenant service
CN109558446A (en) * 2018-12-13 2019-04-02 杭州数梦工场科技有限公司 Job request method, apparatus, electronic equipment and storage medium
CN112596857A (en) * 2020-12-25 2021-04-02 北京知因智慧科技有限公司 Method, device, equipment and medium for isolating SaaS multi-tenant data
CN113873449A (en) * 2021-09-15 2021-12-31 北京仁科互动网络技术有限公司 Short message sending method, cloud service system, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
CN106933709B (en) Test method and device
CN113536081B (en) Data center data management method and system based on artificial intelligence
CN110457371A (en) Data managing method, device, storage medium and system
CN109933509A (en) A kind of method and apparatus for realizing automatic test defect management
CN105099801A (en) Testing system for information management system, and testing environment simulation method
CN113434396A (en) Interface test method, device, equipment, storage medium and program product
CN109614164A (en) Realize plug-in unit configurable method, apparatus, equipment and readable storage medium storing program for executing
CN111367982A (en) Method and device for importing TRIRIGA basic data, computer equipment and storage medium
EP4152715A1 (en) Method and apparatus for determining resource configuration of cloud service system
CN115544784A (en) Multi-tenant virtual test method and device, electronic equipment and storage medium
CN114625640A (en) Software test project management method and device, storage medium and electronic equipment
CN110874319A (en) Automated testing method, automated testing platform, automated testing equipment and computer-readable storage medium
CN111402000B (en) Service page generation method, device and system and computer system
CN115480865A (en) Cross-cluster migration method and device for cloud native application and storage medium
CN115544783B (en) Method, device, equipment and medium for virtual testing of electrical and electronic products
CN109669668B (en) Method and device for realizing simulated transaction execution in system performance test
CN113760715A (en) Method and device for testing system
CN110737572A (en) Big data platform resource preemption test method, system, terminal and storage medium
CN117421153B (en) Automatic testing system and method for railway wagon fault image recognition model
CN113487136B (en) Method and system for urgent scheduling of aviation transport capacity and electronic equipment
CN113674798B (en) Proteomics data analysis system
CN116166545A (en) Test environment creation method, test environment creation device, medium and electronic device
CN108376119B (en) Visualized processing method and device for research and development data
CN116089267A (en) Test interface generation method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20221230

RJ01 Rejection of invention patent application after publication