Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to take the first step of automated testing? These 11 "appetizers" are the best stepping stones.

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

1. I'd like to ask about the difference between Selenium and QTP, an automated testing tool. If a system now needs an automated testing tool that requires repeatedly submitting forms for functional testing, instead of doing it manually (because of excessive workload), there are now two tools (Selenium or QTP), which is more suitable?

It depends on the situation:

1. Whether your company is a tuhao or not, you can buy qtp and use qtp if you can buy it. Can't buy it, dare you use pirated edition? Use qtp if you dare to use it.

2. Is it troublesome to identify the elements of the page? If qtp can't handle it, you have to study hard, improve your coding ability, and use selenium to manipulate the underlying page elements. If the page elements are not troublesome and want to be lazy, please refer to the first one.

2. At present, the most automation of many projects is to run smoke testing, so what is the greater significance? Solve

Smoke testing is also very meaningful, it can verify whether the program can run in the shortest time, and because of the small number of test cases, the threshold for implementation is low and easy to implement. For example, I want to do a windows client program, smoke test only login and three basic functions. If the login fails, you can immediately find out whether the platform environment (including the database) is normal. Test and restore the environment immediately so as not to affect the follow-up testing work.

3. I have been doing functional testing for a year and a half after graduation. I want to switch to automated testing, but I don't know how to start the first step? Does the teacher have any suggestions?

In fact, just graduated, the task can not be arranged at will, to listen to the boss. To do a good job in the tasks arranged by the boss is the most basic. The technical content of functional testing does not sound high-end, but you can have an in-depth understanding of the business processes of your company's products. Business processes are the most important to testers.

If you definitely want to transfer to automated testing, you can first study by yourself and wait for the boss to give you a chance. Automated testing is still quite extravagant for the average company () and needs to wait for the opportunity. Good luck to you.

4. If you want to bring automation into play more and more widely, which direction should it go?

On the basis of smoke testing, the next step is to achieve automated regression testing of basic functions.

It is very important to determine the set of basic functional test cases, which must be the most basic, core and stable functions. After the basic functional use case set implements automated testing, these test cases are executed repeatedly (especially in the daily build process), so the cost performance is the highest.

The next step is to add more features to automated testing. These non-basic functions may not return automatically every time. But it may be executed repeatedly in a development cycle. So it's important.

5. I would like to ask, if the input CAPTCHA is involved in the test scenario, can it be automated?

Basically, it's hard. If automated testing can bypass the CAPTCHA, how stupid the CAPTCHA is.

In this case, development cooperation is generally required to provide a test version without the CAPTCHA.

6. Should it be submitted to a separate testing department for system testing after automated testing?

It's a must. Never think that automated testing is omnipotent. Even Microsoft, Google and other companies are not like this.

Remember, automated testing can only be used for regression testing, and only if the script has been validated for a long time and proved to be no problem.

Colleagues who have just done automated testing often encounter a problem: automated test scripts are actually code, and the code developed and written depends on automated test scripts to ensure quality, so who can guarantee the quality of automated test scripts? It can only be guaranteed by the ability of the scriptwriter, and tested by long-term practice.

7. I have seen a lot of jenkins automated test configurations, all of which mean that test cases are executed during build, but when building, how can even the service be tested successfully?

I think the process should be: (1) submit code; (2) build and compile; (3) automatically deploy (4) automated testing, ask God to explain, how does jenkins do the process I said?

If it is a code-level unit test integration test, it can be run at build time before automatic deployment. However, I recommend that unit testing, integration testing and build are separated into two steps.

If it is a system test, it can only be done after automated deployment. Your understanding is correct.

8. I am learning web development. Which version of Firefox browser is suitable for web development testing?

Use chrome, chrome browsers are more commonly used

9. I am learning QTP, and the version I use is UFT12. In order to drag the scroll bar of the browser, the script code found on the Internet is Browser (). Page (). Object.body.doScroll ("scrollbarDown"), but when I wrote this code, there was no body in the properties and methods of Object. What is the reason?

Without actual circumstances, it is difficult for me to answer you. However, the problem of not finding attributes is common when QTP is used. This is one of the reasons why I like sikuli. I suggest a folk prescription. Try sending page-down keyboard messages.

10. Why doesn't the domestic front end seem to attach great importance to automated testing?

The focus of automated testing is not to implement automated testing or to add it to the development process, but to collect and manage use cases and use rich use cases to ensure code quality. Whether the collection management of use cases can be successful depends on whether the business is stable and predictable. At present, the domestic IT industry is still in a period of rapid growth, and the business is fickle and unstable. In particular, UI changes more frequently. At this point, the collection and management of use cases has become a punishment for Sisyphus, which consumes manpower and cannot be used to ensure code quality. For business-independent underlying frameworks and libraries, automated testing has always existed. But just like where they are, relative to the scope of the company, only a small range of small teams are dependent on others, it is difficult to expand their influence, and they cannot be promoted in frequently changing lines of business. So, I think, when the period of rapid growth is over and the business tends to stabilize, it is possible for it to be taken seriously generally.

11. What does the APP UI automated testing framework contain?

All automated testing frameworks involve three phases: setup, execution, and teardown. In the setup phase, you need to figure out how to solve your case execution strategy and the relationship between them (does it support concurrent execution? Does case need to be related before and after? How to solve the problem of concurrent execution of related words? ), data preparation, configuration (including how the environment is separated) The execution phase needs to consider how to implement the calling test code, which will certainly include your execution mechanism and verification result mechanism to make it easier for users. The teardown phase is the most troublesome part, involving data collection, presentation, and exception handling mechanisms. At the front end, you only need to do the above 3 points, and then do the encapsulation of the UI element library, generally speaking, you use POM. In fact, generally do not want to build this kind of wheel alone, tired not to say, finished may not as good as open source projects, it is better to develop a general-purpose testing framework. Like Robot Framework and Gauge.

Welcome to join the 51 software testing family, where you will get [latest industry information], [free test tool installation package], [software testing technology], [job interview skills]. 51 learn and grow with you! Looking forward to your joining: QQ Group: 755431660

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report