Weekly Issue 14: Pause Update Instructions, Future Trends in Automated Testing

Original link: https://4ark.me/post/weekly-14.html

Pause updates

Because I was working on a Side Project recently, the weekly magazine has not been updated for a period of time. After all, one’s time and energy are very limited, and it is impossible to do two things at the same time. After thinking about it, I decided to temporarily stop the weekly magazine and wait for the later time. Make it abundant and resume the weekly, please forgive me.

This week’s news

Why there are “she” and “he”

I saw a post on V2EX , “He” in Chinese characters regardless of gender , and I can’t help but wonder why “he” is divided into “it, he, she, it, he”?

Why does “she” appear in the first place? In fact, “she” was used by Liu Bannong in the Qing Dynasty. In the past, “she” has always been a variant of “sister”. , once pointed out in an announcement : “My colleagues in this magazine use the word “person” for men, the word for female for women, and the word for “ox” for objects, which has the meaning of insulting women and inhumans”, so they refused to use the word “she”. But despite criticism at the time, “she” is now a popular female pronoun.

The appearance of “He” is used as a third-person pronoun for God, Jesus, etc. when Western religions preach in China, but it is rarely seen in our lives.

Further reading: “He”, “X also”, or “Ta”: What are the non-binary gender pronouns? 》

some tips

Share two very good articles, which provide many useful skills in Bash and HTML respectively. I will not excerpt the full text here. If you are interested, you can click into the original text to view.

5 Modern Bash Syntax

Handling input is simpler than Python and Node.js

In Bash, you can get user input with the following code:

 1
2
3
4
5
6
7
 read -p "Enter your name: " name
echo "Hello, $name "

# Example
> ./test.sh
Enter your name: 4Ark
Hello, 4Ark

10 Lesser Known But Very Useful HTML Tips.

Turn on the camera

We can open the camera through the capture property of the input, which has two property values:

  1. user: front camera
  2. environment: rear camera
 1
 < input type = "file" capture = "user" accept = "image/*" > 

share article

Future trends in automated testing

This article mainly describes the development and future trends of automated testing. Starting from the earliest recording and playback technology, it has gradually developed into DOM object recognition and layered automation. What breakthroughs will today’s hot AI technology bring to automated testing?

In fact, there are already automated testing technologies based on AI technology in the industry:

  1. Self-Healing Technology
  2. Machine Learning Technology

Self- healing technology generally refers to: a self-healing management mechanism.
For example, suppose that when we conduct E2E testing through frameworks such as Cypress , we obtain elements through CSS selectors and other methods for further testing, and when our internal implementation changes (here refers to the element changes) , the test case will fail, we need to modify the test case manually.
The self-healing technology can automatically fix CSS selectors in test cases by comparing the differences between before and after the page, and update the test cases to the code at the end.
The best practice in the industry for self-healing technology is Healenium .

However, traditional methods such as element locators face some problems:

  • It is still necessary to manually obtain the positioning method;
  • If it is an object drawn through Canvas, how to identify elements (such as Flutter Web).

So there is machine learning to solve this problem. It can generate test cases through technologies such as image recognition and processing, such as positioning a button directly based on a screenshot of the button. Now the best practice in the industry is Airtest .

The future trend of automated testing is not only these two, but also intelligent exploratory testing, intelligent traversal testing and intelligent verification. For the technology used in intelligent traversal, you can refer to the introduction of DQN.

interesting link

  • Babel English – English listening and speaking online learning : practice listening through TED speeches and excellent American dramas, with functions specially designed for English learning such as single sentence step and repeat, flexible Chinese and English subtitle settings, etc., making learning English easy, interesting and efficient.
  • Free Word Cloud Generator : Build your word cloud, sort results by relevance and frequency, explore more advanced text analysis tools.
  • JS NICE : An online tool for JavaScript deobfuscation.
  • Slashy : An enhanced tool for creating Notion custom commands, very nice.
  • Type Scale : A visual font size adjustment tool that previews the performance of CSS fonts on different rems.
  • Compose AI : An AI tool to help with writing, currently only available in English, the disadvantage is that it is too expensive.
  • CSS Scan : A tool to get the CSS style of any element directly in the web page.

This article is reprinted from: https://4ark.me/post/weekly-14.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment