【Basic computer】-----website testing

 

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

 



【What is that?】

 



    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();
                }
 
            }
 
       }
   }
}
 


 

 

 

 

 

 

 

评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值