[Tools] Small test and learning project configuration framework and configuration framework
Download: Personal_Study_Assistant.zip
Background
In reality, we may often have to be unsure about Some APIs or small core code, so we write some small test code, such as regular expression testing. After a long time, all these small projects are scattered, and searching and sorting are time-consuming.
"To do well, you must first sharpen your tools." Let's solve this problem.
The idea of the program is: 1. All test files are classified and stored in different projects; 2. When a Project is started, a list of all test codes is automatically generated, run the test by entering the list serial number and selecting the corresponding test. You do not need to change the Main method of the Program.
(Currently, the file name corresponding to the test case cannot be displayed ).
Effect
Static void Main (string [] args) {CaseContainer. ShowCases ();}
The rest is to write our test or learning cases. In the Demo, Test2 simulates a piece of code written by AutoMapper for copying attributes between two objects:
Class Test2: ITest {class Model {public string Name {get; set ;}} class ViewModel {public string Name {get; set ;}} public string Name {get {return "Linq Assign Expression Test" ;}} public string Description {get {return "This demo demenstrates how to use Linq Expression to mapping properties between two object. "; // return" This example shows how to map the attributes of two objects using Linq Expression ";}} public void Test () {Expression <Func <Model, string> exp1 = m => m. name; Expression <Func <ViewModel, string> exp2 = vm => vm. name; var assignExp = Expression. assign (exp2.Body, exp1.Body); var mapAction = Expression. lambda <Action <Model, ViewModel> (assignExp, exp1.Parameters [0], exp2.Parameters [0]). compile (); var m1 = new Model () {Name = "MODEL's Name"}; var m2 = new ViewModel (); mapAction (m1, m2); Console. writeLine (m2.Name );}}
3. Follow-up
The rest is to write a new use case, put it under the current project, and then F5. Both viewing and starting are convenient.
Sometimes we can write some test demos to learn a framework or some code, so we can create a new Study project.
We can set up a shortcut for this project to the desktop. Just click it when you want to write a program ~
I have been doing software testing for more than a year. If I want to learn automated testing, I don't know where a good website can be recommended.Hi!
1. Let me talk about what I used to tell others...
1. The concept of automated testing is to use various means to simulate manual operations, save labor testing costs, and ensure product testing quality.
2. If you want to learn automated software testing well, you don't just need to learn a few automated tools, but you can start with the tools,
First, tell you that the foundation of automated testing is
1) programming skills, including advanced languages and scripting languages. The scripting language is a master of advanced languages such as tcl, phython, and ruby, I am focusing on java. In addition, if you perform automated web Testing, web languages such as jsp, php, HTML, and CSS must be mastered.
2) Operating System skills; Because automated software testing is built on the operating system, skills must be good at using the operating system skills, such: registry, environment variable, handle, etc.
3) database knowledge should be good at using database knowledge for storage and management.
4) business knowledge, which is also the focus. The software business in your software industry needs to know how your software works.
5) quality and process management philosophy.
Then, your learning steps
1) You can start with tools and learn from specific projects. For example, java software interface testing (RFT, QTP java Plug-in, etc.) and web interface testing (QTP, selenium, etc), performance testing (RPT, loadrunner, etc ). But remember, learning its tools doesn't focus on simple use, but on how to use them to expand.
2) then, focus on learning the above basics, focusing on programming, and learning from the rest. By the way, the concept of automated testing is very similar to the concept of software design patterns, you can understand it.
3) then, I will learn how to develop my own automated testing framework. What is the framework? I cannot tell you clearly. I will recommend it to you.
NOTE: If there are no practical projects for automated testing, you 'd better start with the basics. Because the basics are good, the automated testing will get started quickly.
4 (the same is true for performance testing. You can start with a tool, but not limited to a tool. The most important thing in performance testing is the environment construction method and the analysis method for the test results, therefore, the focus of performance testing is on the analysis and implementation process, rather than the use of tools.
2. Based on your situation
1. You have been doing software testing for more than a year, so I don't know whether you are doing black box or white box testing, but since you want to learn automated testing, first, you must understand what it is and what it can be used for. Otherwise it will be blind. You can discuss it with me.
2. Automated Testing is actually a combination of technology and testing, and finally a combination of regression to testing and process management. So you already have experience in testing, so now you need to start with technology, first start with programming, to learn a high-level language and a scripting language, advanced language depends on your preferences, I have been learning java (because of the richness of the library and the completeness of the data), and then I learned tcl and python for the script. I suggest you make python very powerful, first, you can understand a language and learn that you can write some programs and make some things. Then, it is very easy to go deep into automated testing.
3. Learn a programming language well. Of course, when you are learning a programming language, you will involve XML, HTML, databases, and operating systems. You must never learn a language to learn the language, learn how to use it. If you can, you can learn the tcp protocol.
4. OK. You may have mastered a language in about half a year, so you can go deep into the automated testing tool. I started out with an automated testing tool, but now we find that when you have the foundation of the programming language, it is very easy to get started. The focus is to learn the ideas of these tools, that is, why these tools are doing so.
5. Then, you can build some automated testing frameworks on your own.
6 ,....... after that, there is still a long way to go, but now you can do the above is a good stage. Everything is difficult at the beginning. You can continue to do it by learning programming well first.
7, please, what are the needs and problems send me mail test_sunny@hotmail.com, walking SUN, my blog a lot of records on automated testing, let's talk about it later ~~... Remaining full text>
Who can teach me the black box testing of java projects? 1. What tools are used, 2 Where can be downloaded, and 3 where should I start learning?
First, you should learn the basics of software testing, the black box testing method, and the white box testing method. If you learn the basics well, you should learn the tools used by enterprises, such as QC, TD, Loadrunner, and QTP, then you can't be lazy in the project. You must be down-to-earth and learn how to design test cases. Test cases are the key to testing. Learn to compile software testing documents: test plan, test cases, and test report. This is my conclusion. I believe it will help you.