天天看點

【Basic computer】-----website testing【What is that?】【Why we need testing?】   【How】【Example】 

【Basic computer】--------website testing

【What is that?】

【Basic computer】-----website testing【What is that?】【Why we need testing?】   【How】【Example】 

    Website or software Testingis an investigation conducted to provide stakeholders with information aboutthe quality of the product or service under test. For example : put more testerto access the website or software as possible as you can to test the yourwebsite or software. how many people can access to your website or software atthe same time, how strong  is theDatabase or service which we can find it through that test.

【Why we need testing?】  

What kind of testing which we call it successful?----you are goingto  find a fault that people never know itbefore in your software or website which we call it a successful testing.so,why we need testing? Any website or software in this world, you don’t know thecustomers will how to use it and what kind of bugs will appears, so the bestway is to figure it out by yourself before your software online. that is thework we need to do which we call it testing.

【How】

1,  Unit testing

2,  White-box testing

3,  Black-box testing

【Example】 

usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Threading;
usingSystem.Diagnostics;
 
 
namespacevisiting_website
{
   classProgram
   {
       //1,Access the website you want to testing
       //2,open servial website at the same time
       //3,then close the process
       //4,recycle this for many many times which you can set it.
 
 
       staticvoidMain(string[]args)
       {
                        //howmany times you want to test it
            for (inti=0; i<50; i++)
            {
 
            //how manywebsite you want to open at the same time.
                for (intj=0; j<5; j++)
                {
 
            // thewebsite you are going to testing
                    Process.Start("http://blog.csdn.net/u013067756/article/details/52352177");
                    Process.Start("http://blog.csdn.net/u013067756/article/details/52352133");
                }
 
             
            //have arest for few seconds until the websit is really opened  
                System.Threading.Thread.Sleep(30000);
               
            //close the process,such as"360chrome"
                foreach (System.Diagnostics.ProcessprocessinSystem.Diagnostics.Process.GetProcessesByName("360chrome"))
                {
                    process.Kill();
                }
 
            }
 
       }
   }
}
 
           
【Basic computer】-----website testing【What is that?】【Why we need testing?】   【How】【Example】 

繼續閱讀