a particular scenario, you're sure to be happy, and that's the tester's sense of accomplishment, although we can't look at our code as a function of joy, as developers do.
3, the initiative of testing
The work of software testing does not have the same amount of measurement as any other work, but also needs the subjective initiative of testers. The same 100 case,a may find only one bug, while B can find 4 bugs. We can't say a. A does not work well, can only say that A's
() #得到父进程 IDprint ' Process ID: ', os.getpid () #得到本身进程 IDdef f (name):Info (' function f ')print ' Hello ', nameif __name__ = = ' __main__ ':Info (' main Line ')p = Process (target=f, args= (' Bob ',))P.start ()P.join ()Operation Result:Main LineModule Name: __main__Process id:8972function fModule Name: __main__Process id:10648Hello BobExample 3:We created the Thread1 and thread2 two folders and put in two test
---restore content starts---@SpringBootTest Note is an annotation for testing that was introduced by Springboot since the 1.4.0 version1. Add Maven Dependenciesdependency> groupid>org.springframework.bootgroupid> artifactid>spring-boot-starter-testartifactid> dependency>2.Controller Right-->new A test case, select the method you want to generate the cases, click Finish.3. Using MOCKMVC for unit testing,
shows the number of bars restored to the last effective number of barsStep 10: Enter the number of display bars per page longer than the specified length of the database Expect:1, Tip the number of bars per page cannot exceed 2, prompt after each page shows the number of bars restored to the last effective number of barsStep 11: Enter the number of display bars per page as a string, such as the number of pages in ChineseExpect:1, Tip the number of bars per page must be an integer greater than 1
Using factory in 1.driver allows you to implement all of your test cases, but this is not recommended:1) The production of data is in driver, back to the beginning, equivalent to regression.2) Sometimes sequence is more convenient than driver.3) sequence can start another sequence.4) Use virtual sequence to coordinate and synchronize the generation of different incentives.Only the combination of driver and
The springboot comes with a test module.Annotations require:@SpringApplicationConfiguration (classes = computeserviceapplication. Class)This allows the environment context to be introduced.The complete notes are as follows:@RunWith (Springjunit4classrunner. Class= computeserviceapplication. class ) @WebAppConfiguration@BeforeInitializing an MOCKMVC instance Public void throws Exception { = mockmvcbuilders.webappcontextsetup (WAC). build ();
The cyclic structure has many applications in software programs, but the testing cases of the cyclic structure are relatively special. The white box testing method alone does not work. The conditional coverage method and path coverage method must be used, only when the equivalence classes in the black box testing method are divided and the boundary value analysis is combined can the problem be solved.
1. Single-Cycle Structure
Zero execution cycle
Hibernate learning: CRUD unit test cases + knowledge Summary
I. Use Cases
Ii. Summary
Main interfaces:1: AnnotationConfiguration2: SessionFactory3: SessionKnowledge point:1: configure can specify the path of the Hibernate file. If the Hibernate configuration file name is hibernate. cfg. xml, you do not need to write the file path.2: factory. openSessio
collect to improve Oracle query efficiency
The bulk collect feature is introduced in Oracle8i for the first time. This feature allows you to use batch queries in PL/SQL. Batch queries can significantly improve query efficiency in some cases. Now, we will perform some simple tests and analysis on this feature.
1. First, create a table and insert 100000 records.Execute the following script in SQL/plus:
Drop table empl_tbl/Create Table empl_tbl (last_na
Test method: Right-bicepTest Plan1.right-is the result correct?2.b-are all the boundary conditions correct?Does the 3.p-meet performance requirements?4. Is there a multiplication method?5. Do you have parentheses?6. Do you have a real score?7. Can I select a number size range?8. Can I choose the number of the quiz?Test results1. The results of the program are correct2. Meet all boundary conditions3. Perform
see the automatic installation, landing knowPassed:login===============================================Default TestTests Run:1, failures:0, skips:0==============================================================================================Default SuiteTotal tests Run:1, failures:0, skips:0===============================================[TestNG] Time taken by [email protected]: 1938 MS[TestNG] Time taken by [email protected]: 121 ms[TestNG] Time taken by [Failedreporter passed=0 failed=0 Skippe
Test method: Right-bicepTest Plan1.right-is the result correct?2.b-are all the boundary conditions correct?Does the 3.p-meet performance requirements?4. Are there 20 questions that meet the requirements of the results?5. The maximum number of the obtained is not more than 996. Whether the multiplication law is included7. Is the multiplication method consistent with the divisible8. Is there a negative result of the addition or subtraction?
One: Use CasesTwo: summaryMain interface:1:annotationconfiguration2:sessionfactory3:sessionKnowledge Points:1:configure can specify the path to the hibernate file, if the Hibernate profile name is Hibernate.cfg.xml, then you do not have to write the file path2:factory.opensession (); each time a call is made, a new session will be created3:factory.getcurrentsession (); Gets the session from the context, if one is not created, creates a new session if not4:factory.opensession (); manual close Req
1. Cup CharacteristicsCup capacity: How many liters of water can be loadedThe shape of the Cup: roundThe material of the Cup: paper cupsThe ability of the cup to fall: whether the wind will fall, whether the fall will be bad, fall many times will be badTemperature resistance of cups: cold water, hot water, ice2. Advertising patternWhether the advertising pattern touches the water will fadeWhether the advertising pattern content is legalWhether the advertising pattern is easy to peel off3. Securi
After the program runs, it needs to be tested with multiple Telnet clientsThe connected command is Conn DeviceNumberBroadcast command for Broa messageIt is important to note that the sample code has a bug,The storage of the broadcastdict itself is the counterpart of the Cxxx and the device collectionbroadcastdict["C001"] =Newliststring> {"V001" }; broadcastdict["C002"] =Newliststring> {"V001","V002" }; broadcastdict["C003"] =Newliststring> {"V002"};But when used in the back, the inside as a judg
You are given, linked lists representing, and non-negative numbers. The most significant digit comes first and all of their nodes contain a single digit. ADD the numbers and return it as a linked list.You may assume the numbers does not contain any leading zero, except the number 0 itself.Follow up:What if cannot modify the input lists? In other words, reversing the lists are not allowed.Example:Input: (7, 2, 4, 3) + (5, 6, 4)Output: 7, 8, 0, 7#Definition for singly-linked list.#class ListNode (
1. Static member functions can be stored with normal function pointers, and ordinary member functions must be stored with class function pointersClass a{public:static void Fun () {cout 2. Static member functions can not call non-static member functions for two reasons, one static member function is better than non-static member function generation, at compile time the static member function has been generated, and the second static member function does not contain the this pointerClass a{public:
Binary tree is a common data structure, and here we need to note that the binary tree of the non-recursive traversal.First order traversal, middle sequence traversal, post-order traversalThese three kinds of traversal, if implemented in a non-recursive way, we need to use the structure of the stack, first we need to traverse the left side of all the left subtree. After the pressure stack, after the completion of the stack, according to different needs, determine whether to continue to access or
properlyIn the process of uninstallation, suddenly restart the device, re-access the program, the program can run correctlyIf the program is not in use, directly delete the files under the installation directory, the program can run correctlyWhen you are using the program, directly delete the files under the installation directory, the program can run correctlyUnder different system, uninstall, can unload normally.In different hardware environment, to uninstall, whether the normal uninstall.In
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.