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
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
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 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 ...
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
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
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
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
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 ...