Questionnaire testing method and device

文档序号:1905156 发布日期:2021-11-30 浏览:15次 中文

阅读说明:本技术 问卷测试方法及装置 (Questionnaire testing method and device ) 是由 吴宇强 黄庆 于 2021-08-05 设计创作,主要内容包括:本公开提供一种问卷测试方法及装置,所述方法包括基于预设编程语言生成待测试问卷的问卷结构;加载所述待测试问卷的问卷结构,以及所述待测试问卷的题目以及题目对应的编号;初始化加载完毕的问卷结构,生成所述问卷结构对应的题目顺序列表;基于所述题目顺序列表以及题目对应的编号,获取待测试题目在所述题目顺序列表中的编号,以及与待测试题目相关联的题目;动态加载所述待测试题目以及与所述待测试题目相关联的题目,以实现目标用户对所述待测试题目进行测试。本公开的方法可以从任意题目开始答题,单题测试可以支持答案保存,提高了测试灵活性,节省了大量测试时间。(The disclosure provides a questionnaire testing method and a device, wherein the method comprises the steps of generating a questionnaire structure of a questionnaire to be tested based on a preset programming language; loading a questionnaire structure of the questionnaire to be tested, and the question of the questionnaire to be tested and the number corresponding to the question; initializing a loaded questionnaire structure, and generating a question sequence list corresponding to the questionnaire structure; acquiring the number of the to-be-tested question in the question sequence list and the question associated with the to-be-tested question based on the question sequence list and the number corresponding to the question; and dynamically loading the to-be-tested questions and the questions related to the to-be-tested questions so as to realize that the target user tests the to-be-tested questions. The method disclosed by the invention can be used for answering from any question, and the single-question test can support answer storage, thereby improving the test flexibility and saving a large amount of test time.)

1. A questionnaire testing method, comprising:

generating a questionnaire structure of a questionnaire to be tested based on a preset programming language;

loading a questionnaire structure of the questionnaire to be tested, and the question of the questionnaire to be tested and the number corresponding to the question;

initializing a loaded questionnaire structure, and generating a question sequence list corresponding to the questionnaire structure;

acquiring the number of the to-be-tested question in the question sequence list and the question associated with the to-be-tested question based on the question sequence list and the number corresponding to the question;

and dynamically loading the to-be-tested questions and the questions related to the to-be-tested questions so as to realize that the target user tests the to-be-tested questions.

2. The questionnaire testing method of claim 1, wherein the method for the target user to test the subject to be tested comprises:

modifying the content and/or answer pattern of the subject to be tested, and/or

And modifying the preset theme logic and/or the preset jump logic of the to-be-tested theme.

3. The questionnaire testing method of claim 1, wherein the method further comprises:

generating a test questionnaire according to the to-be-tested questions;

pushing the test questionnaire to a target terminal,

when feedback information of the test questions in the test questionnaire sent by the target terminal is received, determining updated test questions applied when the test questionnaire is updated according to the feedback information;

and pushing the updated test questions to a target terminal so that the target terminal displays the updated test questions.

4. The questionnaire testing method of claim 1, wherein the method further comprises:

acquiring answering behaviors corresponding to each test question, wherein the answering behaviors comprise answering time and times for modifying options;

judging whether the answer behavior of the test question is a differential answer behavior or not according to the answer behavior corresponding to each test question;

generating an answer difference rate according to the number of the difference answer behaviors;

comparing the generated answer difference rate with a preset answer difference rate to generate a comparison result;

and judging the effectiveness of the test according to the generated comparison result.

5. The questionnaire testing method of claim 1,

the preset programming language comprises a Python programming language;

the method for dynamically loading the questions to be tested and the questions associated with the questions to be tested comprises the following steps:

dynamically loading the to-be-tested question and the question associated with the to-be-tested question by adopting an Append method of JavaScript;

js, the questionnaire structure includes a tree structure project.

6. A questionnaire testing device, characterized by comprising:

the device comprises a first unit, a second unit and a third unit, wherein the first unit is used for generating a questionnaire structure of a questionnaire to be tested based on a preset programming language;

the second unit is used for loading the questionnaire structure of the questionnaire to be tested, the question of the questionnaire to be tested and the number corresponding to the question;

a third unit, configured to initialize the loaded questionnaire structure, and generate a question sequence list corresponding to the questionnaire structure;

a fourth unit, configured to obtain, based on the question sequence list and the number corresponding to the question, a number of the question to be tested in the question sequence list and a question associated with the question to be tested;

and the fifth unit is used for dynamically loading the to-be-tested question and the question associated with the to-be-tested question so as to realize that the target user tests the to-be-tested question.

7. The questionnaire testing device of claim 6, wherein the fifth unit is further configured to:

modifying the content and/or answer pattern of the subject to be tested, and/or

And modifying the preset theme logic and/or the preset jump logic of the to-be-tested theme.

8. The questionnaire testing device of claim 6, characterized in that the device further comprises a sixth unit for:

generating a test questionnaire according to the to-be-tested questions;

pushing the test questionnaire to a target terminal,

when feedback information of the test questions in the test questionnaire sent by the target terminal is received, determining updated test questions applied when the test questionnaire is updated according to the feedback information;

and pushing the updated test questions to a target terminal so that the target terminal displays the updated test questions.

9. The questionnaire testing device of claim 6, characterized in that the device further comprises a seventh unit for:

acquiring answering behaviors corresponding to each test question, wherein the answering behaviors comprise answering time and times for modifying options;

judging whether the answer behavior of the test question is a differential answer behavior or not according to the answer behavior corresponding to each test question;

generating an answer difference rate according to the number of the difference answer behaviors;

comparing the generated answer difference rate with a preset answer difference rate to generate a comparison result;

and judging the effectiveness of the test according to the generated comparison result.

10. The questionnaire testing device of claim 6,

the preset programming language comprises a Python programming language;

the fifth unit is further configured to:

dynamically loading the to-be-tested question and the question associated with the to-be-tested question by adopting an Append method of JavaScript;

js, the questionnaire structure includes a tree structure project.

Technical Field

The present disclosure relates to the field of questionnaire testing technologies, and in particular, to a questionnaire testing method and apparatus.

Background

Questionnaires are an important means of social and marketing research. With the continuous development of the internet, the advantages of online research are also continuous and obvious, time and labor are saved, statistics and analysis are easier, results are easier to quantify, large-scale investigation can be performed, and online questionnaire survey gradually becomes the most common mode.

The logic that the questionnaire edited on line can be set is very flexible, and especially for the questionnaire with more subjects and more complicated logic, the test before the questionnaire is issued is a difficult problem.

For example, assuming that the questionnaire has 100 questions and a logic is set at the time of the 50 th question, the logic is only quasi inaccurate when the questionnaire is tried to be tested before being issued, and the questionnaire needs to be answered from the first question, which is time-consuming and energy-consuming. The prior art does not have a solution to this problem.

Therefore, how to provide a technical solution to the above problems is a technical problem that needs to be solved by those skilled in the art.

The information disclosed in this background section is only for enhancement of understanding of the general background of the application and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.

Disclosure of Invention

The embodiment of the disclosure provides a questionnaire testing method and device, which can start answering tests from any question.

In a first aspect of the embodiments of the present disclosure, a questionnaire testing method is provided, including:

generating a questionnaire structure of a questionnaire to be tested based on a preset programming language;

loading a questionnaire structure of the questionnaire to be tested, and the question of the questionnaire to be tested and the number corresponding to the question;

initializing a loaded questionnaire structure, and generating a question sequence list corresponding to the questionnaire structure;

acquiring the number of the to-be-tested question in the question sequence list and the question associated with the to-be-tested question based on the question sequence list and the number corresponding to the question;

and dynamically loading the to-be-tested questions and the questions related to the to-be-tested questions so as to realize that the target user tests the to-be-tested questions.

In an alternative embodiment of the method according to the invention,

the method for testing the to-be-tested question by the target user comprises the following steps:

modifying the content and/or answer pattern of the subject to be tested, and/or

And modifying the preset theme logic and/or the preset jump logic of the to-be-tested theme.

In an alternative embodiment of the method according to the invention,

the method further comprises the following steps:

generating a test questionnaire according to the to-be-tested questions;

pushing the test questionnaire to a target terminal,

when feedback information of the test questions in the test questionnaire sent by the target terminal is received, determining updated test questions applied when the test questionnaire is updated according to the feedback information;

and pushing the updated test questions to a target terminal so that the target terminal displays the updated test questions.

In an alternative embodiment of the method according to the invention,

the method further comprises the following steps:

acquiring answering behaviors corresponding to each test question, wherein the answering behaviors comprise answering time and times for modifying options;

judging whether the answer behavior of the test question is a differential answer behavior or not according to the answer behavior corresponding to each test question;

generating an answer difference rate according to the number of the difference answer behaviors;

comparing the generated answer difference rate with a preset answer difference rate to generate a comparison result;

and judging the effectiveness of the test according to the generated comparison result.

In an alternative embodiment of the method according to the invention,

the preset programming language comprises a Python programming language;

the method for dynamically loading the questions to be tested and the questions associated with the questions to be tested comprises the following steps:

dynamically loading the to-be-tested question and the question associated with the to-be-tested question by adopting an Append method of JavaScript;

js, the questionnaire structure includes a tree structure project.

In a second aspect of the embodiments of the present disclosure, there is provided a questionnaire testing apparatus, including:

the device comprises a first unit, a second unit and a third unit, wherein the first unit is used for generating a questionnaire structure of a questionnaire to be tested based on a preset programming language;

the second unit is used for loading the questionnaire structure of the questionnaire to be tested, the question of the questionnaire to be tested and the number corresponding to the question;

a third unit, configured to initialize the loaded questionnaire structure, and generate a question sequence list corresponding to the questionnaire structure;

a fourth unit, configured to obtain, based on the question sequence list and the number corresponding to the question, a number of the question to be tested in the question sequence list and a question associated with the question to be tested;

and the fifth unit is used for dynamically loading the to-be-tested question and the question associated with the to-be-tested question so as to realize that the target user tests the to-be-tested question.

In an alternative embodiment, the fifth unit is further configured to:

modifying the content and/or answer pattern of the subject to be tested, and/or

And modifying the preset theme logic and/or the preset jump logic of the to-be-tested theme.

In an alternative embodiment of the method according to the invention,

the apparatus further comprises a sixth unit for:

generating a test questionnaire according to the to-be-tested questions;

pushing the test questionnaire to a target terminal,

when feedback information of the test questions in the test questionnaire sent by the target terminal is received, determining updated test questions applied when the test questionnaire is updated according to the feedback information;

and pushing the updated test questions to a target terminal so that the target terminal displays the updated test questions.

In an alternative embodiment of the method according to the invention,

the apparatus further comprises a seventh unit for:

acquiring answering behaviors corresponding to each test question, wherein the answering behaviors comprise answering time and times for modifying options;

judging whether the answer behavior of the test question is a differential answer behavior or not according to the answer behavior corresponding to each test question;

generating an answer difference rate according to the number of the difference answer behaviors;

comparing the generated answer difference rate with a preset answer difference rate to generate a comparison result;

and judging the effectiveness of the test according to the generated comparison result.

In an alternative embodiment of the method according to the invention,

the preset programming language comprises a Python programming language;

the fifth unit is further configured to:

dynamically loading the to-be-tested question and the question associated with the to-be-tested question by adopting an Append method of JavaScript;

js, the questionnaire structure includes a tree structure project.

The questionnaire testing method comprises the steps of generating a questionnaire structure of a questionnaire to be tested based on a preset programming language; loading a questionnaire structure of the questionnaire to be tested, and the question of the questionnaire to be tested and the number corresponding to the question; initializing a loaded questionnaire structure, and generating a question sequence list corresponding to the questionnaire structure; acquiring the number of the to-be-tested question in the question sequence list and the question associated with the to-be-tested question based on the question sequence list and the number corresponding to the question; and dynamically loading the to-be-tested questions and the questions related to the to-be-tested questions so as to realize that the target user tests the to-be-tested questions.

The method disclosed by the invention can be used for answering from any question, and the single-question test can support answer storage, thereby improving the test flexibility and saving a large amount of test time.

Drawings

FIG. 1 is a schematic flow chart of a questionnaire testing method according to an embodiment of the present disclosure;

FIG. 2 is a logic diagram of a questionnaire testing method according to an embodiment of the present disclosure;

fig. 3 is a schematic structural diagram of a questionnaire testing apparatus according to an embodiment of the present disclosure.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.

The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present disclosure and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein.

It should be understood that, in various embodiments of the present disclosure, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.

It should be understood that in the present disclosure, "including" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

It should be understood that in the present disclosure, "plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, for example, and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.

It should be understood that in the present disclosure, "B corresponding to A", "A and B

The corresponding "or" B corresponds to A "means that B is associated with A, from which B can be determined. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.

As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.

The technical solution of the present disclosure is explained in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.

Fig. 1 is a schematic flow chart illustrating a questionnaire testing method according to an embodiment of the present disclosure, where as shown in fig. 1, the method includes:

step S101, generating a questionnaire structure of a questionnaire to be tested based on a preset programming language;

in practical application, after the questionnaire is edited, the edited questionnaire is tested, and after the test is finished, the requirements for modifying certain characters, logics and the like are met, and the questionnaire can be issued only after the test is passed after the modification is finished. However, in the past, even if only character modification is performed, it is necessary to start with the first question, and it takes a lot of effort to reach the modified question.

The problem of the prior art can be solved through a single-subject testing technology.

The preset programming language may include a Python programming language; the questionnaire structure can include a tree structure project.

Illustratively, Python may be utilized to generate a tree questionnaire structure project.

S102, loading a questionnaire structure of the questionnaire to be tested, and the question of the questionnaire to be tested and the number corresponding to the question;

illustratively, the questionnaire structure and the current topic number can be loaded through an html page.

Step S103, initializing the loaded questionnaire structure, and generating a question sequence list corresponding to the questionnaire structure;

for example, after the questionnaire structure is loaded, an initialization function can be executed to generate a question order list QUEST iolist, and the subscript of the current question position in the QUEST iolist is located by using the question number.

S104, acquiring the number of the to-be-tested question in the question sequence list and the question associated with the to-be-tested question based on the question sequence list and the number corresponding to the question;

in an alternative embodiment of the method according to the invention,

the method for testing the to-be-tested question by the target user comprises the following steps:

modifying the content and/or answer pattern of the subject to be tested, and/or

And modifying the preset theme logic and/or the preset jump logic of the to-be-tested theme.

Illustratively, the test of the single topic may include two types: firstly, neglecting the logic test, and simply modifying the characters, answer styles and the like of the questions; and the second type comprises hidden subject logic or jump logic arranged in the questionnaire and is suitable for testing the change of the questionnaire logic. The test of the single topic may include setting whether to display a front topic, such as a hidden topic, an associated topic, a logically related topic, and the like.

And S105, dynamically loading the to-be-tested question and the question associated with the to-be-tested question to realize that the target user tests the to-be-tested question.

Illustratively, the title associated with the current title can be obtained, and the title is dynamically loaded by using an append method of JavaScript, so that the function of starting testing from the current title is realized.

Fig. 2 is a logic diagram schematically illustrating a questionnaire testing method according to an embodiment of the present disclosure, and as shown in fig. 2, the method includes:

starting the test of the single question;

generating a tree-type questionnaire structure;

loading a questionnaire structure to generate a question sequence list QUEST IONLIST;

loading a current question number;

positioning subscript of current question number in QUEST IONLIST;

acquiring a question associated with a current question;

dynamically loading questions;

and starting answering.

In an alternative embodiment of the method according to the invention,

the method further comprises the following steps:

generating a test questionnaire according to the to-be-tested questions;

pushing the test questionnaire to a target terminal,

when feedback information of the test questions in the test questionnaire sent by the target terminal is received, determining updated test questions applied when the test questionnaire is updated according to the feedback information;

and pushing the updated test questions to a target terminal so that the target terminal displays the updated test questions.

Illustratively, after the to-be-tested questions are loaded, a test questionnaire can be generated and pushed to the target terminal, feedback information of the target terminal is received, the test questions are updated according to the feedback information, and the updated test questions are sent to the target terminal again, so that the to-be-tested questions are guaranteed to be in line with requirements and are updated in real time.

In an alternative embodiment of the method according to the invention,

the method further comprises the following steps:

acquiring answering behaviors corresponding to each test question, wherein the answering behaviors comprise answering time and times for modifying options;

judging whether the answer behavior of the test question is a differential answer behavior or not according to the answer behavior corresponding to each test question;

generating an answer difference rate according to the number of the difference answer behaviors;

comparing the generated answer difference rate with a preset answer difference rate to generate a comparison result;

and judging the effectiveness of the test according to the generated comparison result.

Illustratively, whether the answer behavior is an effective answer behavior can be judged by detecting the answer behavior of the user, so as to judge the effectiveness of the test and further ensure the effectiveness and feasibility of the single-question test.

In an alternative embodiment of the method according to the invention,

the preset programming language comprises a Python programming language;

the method for dynamically loading the questions to be tested and the questions associated with the questions to be tested comprises the following steps:

dynamically loading the to-be-tested question and the question associated with the to-be-tested question by adopting an Append method of JavaScript;

js, the questionnaire structure includes a tree structure project.

The questionnaire testing method comprises the steps of generating a questionnaire structure of a questionnaire to be tested based on a preset programming language; loading a questionnaire structure of the questionnaire to be tested, and the question of the questionnaire to be tested and the number corresponding to the question; initializing a loaded questionnaire structure, and generating a question sequence list corresponding to the questionnaire structure; acquiring the number of the to-be-tested question in the question sequence list and the question associated with the to-be-tested question based on the question sequence list and the number corresponding to the question; and dynamically loading the to-be-tested questions and the questions related to the to-be-tested questions so as to realize that the target user tests the to-be-tested questions.

The method disclosed by the invention can be used for answering from any question, and the single-question test can support answer storage, thereby improving the test flexibility and saving a large amount of test time.

Fig. 3 is a schematic structural diagram schematically illustrating a questionnaire testing apparatus according to an embodiment of the present disclosure, and as shown in fig. 3, the apparatus includes:

a first unit 31, configured to generate a questionnaire structure of a questionnaire to be tested based on a preset programming language;

a second unit 32, configured to load a questionnaire structure of the questionnaire to be tested, and a question of the questionnaire to be tested and a number corresponding to the question;

a third unit 33, configured to initialize the loaded questionnaire structure, and generate a question sequence list corresponding to the questionnaire structure;

a fourth unit 34, configured to obtain, based on the question sequence list and the number corresponding to the question, a number of the question to be tested in the question sequence list and a question associated with the question to be tested;

a fifth unit 35, configured to dynamically load the to-be-tested question and the question associated with the to-be-tested question, so as to implement that the target user tests the to-be-tested question.

In an alternative embodiment, the fifth unit 35 is further configured to:

modifying the content and/or answer pattern of the subject to be tested, and/or

And modifying the preset theme logic and/or the preset jump logic of the to-be-tested theme.

In an alternative embodiment of the method according to the invention,

the apparatus further comprises a sixth unit for:

generating a test questionnaire according to the to-be-tested questions;

pushing the test questionnaire to a target terminal,

when feedback information of the test questions in the test questionnaire sent by the target terminal is received, determining updated test questions applied when the test questionnaire is updated according to the feedback information;

and pushing the updated test questions to a target terminal so that the target terminal displays the updated test questions.

In an alternative embodiment of the method according to the invention,

the apparatus further comprises a seventh unit for:

acquiring answering behaviors corresponding to each test question, wherein the answering behaviors comprise answering time and times for modifying options;

judging whether the answer behavior of the test question is a differential answer behavior or not according to the answer behavior corresponding to each test question;

generating an answer difference rate according to the number of the difference answer behaviors;

comparing the generated answer difference rate with a preset answer difference rate to generate a comparison result;

and judging the effectiveness of the test according to the generated comparison result.

In an alternative embodiment of the method according to the invention,

the preset programming language comprises a Python programming language;

the fifth unit 35 is further configured to:

dynamically loading the to-be-tested question and the question associated with the to-be-tested question by adopting an Append method of JavaScript;

js, the questionnaire structure includes a tree structure project.

It should be noted that beneficial effects corresponding to the apparatus embodiment of the present disclosure may refer to beneficial effects corresponding to the foregoing method embodiment, and details of the apparatus embodiment of the present disclosure are not repeated herein.

The present disclosure also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.

The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present disclosure may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.

Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; while the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the 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 disclosure.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种国土资源三调坐标转换系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!