timeout in Jasmine of JS learning

Recently, I was crashed by the asynchronous timeout in Jasmine. The specific problem is setTimeout, which sometimes causes the test case to time out, and sometimes does not wait for enough time. So I decided to study the usage of asynchronous timeout in Jasmine. First, look at the example given by the jasmine documentation: describe("long asy ...

Posted by shanksta13 on Mon, 12 Dec 2022 14:21:41 +0300

2. Summary of test interview questions

Summary of test interview questions function test 1. Similarities and differences between app and web testing *** Same point: A.The test cases are the same. B.The same test method: will be checked according to the renderings UI,Test functionality against requirements documentation. C.Compatibility testing is required D.All need to test the s ...

Posted by Capnstank on Fri, 16 Sep 2022 21:56:24 +0300

Advanced Google test - parameter test, Mock test, time-consuming test, type test

1. Previously on Google test is a unit testing framework developed for C + +. It provides many favorable wheels for writing unit testing, which can largely avoid the trouble of repeatedly building wheels for writing unit testing. This series of articles is preceded by a basic document for getting started. It mainly focuses on the environment ...

Posted by shrimp on Sat, 21 May 2022 04:34:32 +0300

UT preparation record

UT writing rules https://zhuanlan.zhihu.com/p/424117483 1. Follow the AIR principle A (automation): unit tests should be fully automated and non interactive. I (Independence): unit test cases must not call each other or depend on the order of execution. --------Counterexample: method2 needs to rely on the execution of method1 and take the e ...

Posted by Lauj on Fri, 20 May 2022 01:52:04 +0300

Software testing environment -- install MySQL on Linux (detailed), fine sorting

1, Foreword Several common ways to install software on Linux: Source code compilationDecompress the compressed package (generally tar.gz)Compiled installation package (RPM, DPKG, etc.)Online installation (YUM, APT, etc.) The convenience of the above methods increases in turn, but the versatility decreases in turn Delete the development ...

Posted by parkej60 on Wed, 18 May 2022 02:16:56 +0300

The second Python selenium automated test project

preface The previous article said that I want to write an article on automatic combat. I'm busy during this period. I haven't updated my blog since I went home for 11. Today, I'll sort out the code of the actual combat project for everyone to learn. (Note: the project is a test of our company's internal system, which can only be accessed throu ...

Posted by ywickham on Mon, 09 May 2022 22:57:05 +0300

The three most common framework parsing | how to create JUnit parametric tests

Parametric testing is a good way to define and run multiple test cases. The only difference between them is data. Here, let's take a look at three different frameworks commonly used in JUnit testing. When writing a unit test, the method input parameters and expected results are usually initialized in the test method itself. In some cases, a ...

Posted by JustinK101 on Tue, 03 May 2022 18:13:47 +0300

unit testing framework

https://en.wikipedia.org/wiki/Unit_testing https://en.wikipedia.org/wiki/List_of_unit_testing_frameworks https://docs.python-guide.org/writing/tests/ https://docs.python.org/zh-cn/3/library/unittest.html#module-unittest https://docs.python.org/zh-cn/3/using/cmdline.html#cmdoption-m https://docs.python.org/3/library/main.html?highlight ...

Posted by sirup_segar on Tue, 03 May 2022 16:33:06 +0300

Testng learning notes

TestNG design covers all types of tests: unit, function, end-to-end, integration, etc. it requires JDK5 or higher. TestNG is an open source automated testing framework; Its inspiration comes from JUnit and NUnit TestNG environment setting (configuration and installation) TestNG is a Java framework, so the first requirement is that JDK should ...

Posted by opencombatclan on Thu, 21 Apr 2022 13:45:43 +0300

junit unit test

As a newcomer to the workplace, today's tester said he wanted to train us to learn some tests for development. In this way, we can do coding and some tests to alleviate the pressure of the company's test team. At present, let's learn about unit testing first. Unit testing is done by the programmer himself, and the ultimate benefit is the ...

Posted by jmut on Sun, 17 Apr 2022 19:36:24 +0300