Tag:test case

  • Interview question: JS get picture width and height


    Generally used in the audit background, for exampleThe image can only be refined within a certain range。It is also used for clipping in canvasCalculate scaling。 JS get image width and height Get naturalwidth (callback version) The solution is to getnaturalWidth. thatnaturalWidthandwidthAny difference? naturalWidthIdentifies the original width and height of the picture. widthBecause of historical problems, […]

  • [cmake series] (4) test with Google test


    Today, let’s talk about the cmake test. However, we are still talking about C + + testing. Cmake provides us with perfect testing support, for example, it has a special module ctest. Cmake native test support The cmake native support test is very simple, with only two functions: enable_testing() add_test(NAME <name> COMMAND <command> [<arg>…] [CONFIGURATIONS […]

  • Since then, we have broken up with this script, set echo and debug


    Why write unit tests for bash scripts? Because bash scripts usually perform some operations related to the operating system, which may cause some irreversible operations to the running environment, such as modifying or deleting files, upgrading software packages in the system, etc. Therefore, in order to ensure the safety and reliability of bash script, we […]

  • App test points (functions, interfaces, etc.)


    1、 Function test ——Write test cases according to product requirements document. ——Software design documents write use cases. Note: it is to write test cases according to the product requirements document. 1. Install run uninstall test 1) Verify whether the app can be correctly installed, run, uninstall, and the operation process and the occupancy of system […]

  • PHP framework queryphp 1.0 official version, four years grinding production available!


    [open source news]https://www.oschina.net/news/… Today is a very special date. Here we will announce an important news to you. The official version of queryphp 1.0, which is completely rewritten, has been released! About queryphp Php-m is a progressive framework for PHP engineers, and it is a good historical framework for every PHP application. 100% unit testing […]

  • Adding, deleting, modifying and querying of DOM node operation in JavaScript


    Adding, deleting, modifying and querying DOM nodes dom-test <span style=”background-color: #f5f5f5; color: #800000;”> .setColor</span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”> color</span><span style=”background-color: #f5f5f5; color: #000000;”>:</span><span style=”background-color: #f5f5f5; color: #0000ff;”> blue</span><span style=”background-color: #f5f5f5; color: #000000;”>;</span> <span style=”background-color: #f5f5f5; color: #000000;”>}</span><span style=”background-color: #f5f5f5; color: #800000;”> .setFtSz</span><span style=”background-color: #f5f5f5; color: #000000;”>{</span><span style=”background-color: #f5f5f5; color: #ff0000;”> font-size</span><span […]

  • How to write web front end unit test? It’s enough to read this one


    With the increasing complexity of web applications, many companies pay more and more attention to front-end unit testing. Most of the tutorials we’ve seen will talk about the importance of unit testing and how to use some representative testing framework APIs, but how to start unit testing in actual projects? What should be included in […]

  • Failed to execute goal


    This is generally caused by test case execution errorsterms of settlement:1. Make the test case run through without error2. Do not perform the testOne is the command line mvn clean package -Dmaven.test.skip=true Second, write POM file <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin> PS: welcome to join my QQ group 1057838553

  • 0312 java interface test Sanleng Junci rest assured


    background Java programmers usually write back-end services, which are java web type projects, mainly including HTTP interface and Dubbo interface. The HTTP interface generally adopts rest style. Then how to test the rest interface quickly on the third-party test framework?The rest assured framework is a good tool. It’s like a soldier’s three edged spear, as […]

  • Cicd practice service automatic test


    Introduction With the development of microservices, containers and cloud computing, more and more concepts such as Devops and CI / CD have come into our eyes in recent years. Many development teams hope to apply these ideas to improve software quality and development efficiency. If a worker wants to do something well, he must first […]

  • Use geotools to determine whether the coordinates are in the polygon


    geotools GeoToolsIt’s a useJAVAOpen source GIS tool developed. It can develop the geographic information system and related applications that meet the standards. Specific use and details can baidu. This paper mainly describes how to useGeoToolsDetermine whether the coordinates are within the polygon. POM.xml <dependency> <groupId>org.geotools</groupId> <artifactId>gt-jts-wrapper</artifactId> <version>23.2</version> </dependency> JAVA import org.geotools.geometry.jts.JTSFactoryFinder; import org.locationtech.jts.geom.GeometryFactory; import org.locationtech.jts.io.ParseException; […]

  • Several black box test case design methods for app testing


    Black box testing is based on the relationship between input data and output data from the perspective of users. Obviously, if there is a problem with the external characteristics or the specification is wrong, the ink cartridge test method can not find out. Black box testing focuses on testing the functional requirements of app, mainly […]