Writing Appium tests with Kotlin

Kotlin Is a modern programming language that focuses on simplicity, clarity and code security. Google officially adopted Kotlin by adding support to Android Studio in 2017, and then announced it as the preferred language for Android developers on Google I/O 2019. Perhaps your Android application team has gradually added Kotlin code to your pr ...

Posted by varun_146100 on Tue, 04 Jan 2022 15:42:17 +0100

Master the sorting algorithm and interview magic weapon. You can pay more than 10000 without code

1. Introduction Quicksort is an improvement on bubble sort. Rapid sorting was proposed by C.A.R.Hoare in 1962. Its basic idea is to divide the data to be sorted into two independent parts through one-time sorting. All the data in one part is smaller than all the data in the other part, and then quickly sort the two parts of data according to ...

Posted by adsegzy on Sun, 02 Jan 2022 22:29:54 +0100

Airtest API refined assertions

Last review: Global variable of Airtest Based onpython3.8;airtestIDE1.2.11;airtest1.2.2;pocoui1.0.83 Assertions are common to every test framework and can be understood as test point verification. Airtest has four assertion API s, which support all Android, iOS and Windows platforms, respectively: assert_exists: verify that the picture ...

Posted by Jeroen_nld on Sun, 02 Jan 2022 20:29:31 +0100

Using pytest to play with data-driven testing framework

This article is selected from the tester community What is the pytest architecture? First, let's look at an example of pytest: def test_a(): print(123) collected 1 item test_a.py . [ ...

Posted by jmandas on Sat, 01 Jan 2022 19:03:48 +0100

mock feign Client in microservice for restful unit test

Today, I share a unit test example of restful interface in microservice, which mainly involves three aspects: mock of internal call, serialization and deserialization of interface DTO, and accelerating the execution of unit test cases with MockMvc. Unit testing requires that it does not rely on external services, so that it can be easily exec ...

Posted by laflair13 on Fri, 31 Dec 2021 18:22:58 +0100

Tanabata is coming. Why don't you confess to me?

Hi, everyone. Only when you open the calendar of the whole year will you suddenly find: Wow! Every month there is a Valentine's day with different themes. From "Diary Valentine's Day" on January 14 to "hug Valentine's Day" on December 14. Although the themes are different, the sweetness is the same. As Shakespeare once sai ...

Posted by amy_ewe on Sun, 26 Dec 2021 21:32:07 +0100

Automated test series - new features of selenium 4

Developing Selenium 3 X version, the W3C WebDriver standard is supported. Support the new protocol and the old JSON wired protocol. Around version 3.11, Selenium code began to comply with W3C level 1 specification. The W3C compliant code in the latest version of Selenium 3 will work as expected in Selenium 4. In some cases, the upgrade wi ...

Posted by rockstar_tom on Mon, 20 Dec 2021 05:42:30 +0100

Source Generator unit test

Hello, I'm Li Weihan, a laboratory researcher in this issue. Today, I'll show you how to do unit testing based on Source Generator. Next, let's go to the lab and find out! Source Generator unit testIntroThe Source Generator is NET 5.0, a mechanism for dynamically generating code during compilation, which can be referred to for introduction C # ...

Posted by headrush on Wed, 15 Dec 2021 11:03:29 +0100

Deep understanding of Mock technology and basic use of Wire Mock framework

1, Key concepts spy: it monitors the calling process without forwarding capability. It mainly monitors the calling process (similar to packet capture and F12)stub: returns the implementation of a fixed value. It cannot be changed dynamically in the test (it means that it cannot be changed dynamically according to the real value). It is relativ ...

Posted by Craig_H on Thu, 09 Dec 2021 05:22:08 +0100

Be familiar with the four methods of POST data submission, and the interface test is more efficient

catalogue preface 1, application/x-www-form-urlencoded 2, Multipart / form data 3, application/json 4, text/xml Finally, if you want to get the above code, you can get it according to the contact information below (including Baidu online disk link and Alibaba cloud disk link). We all know that POST is generally used to submit data to th ...

Posted by plutoplanet on Thu, 09 Dec 2021 02:06:24 +0100