The characteristic analysis of C/s structure and b/s structure _ software test

Source: Internet
Author: User
Tags benchmark
The characteristic analysis of C/s structure and b/s structure


In order to distinguish from the traditional C/s mode, it is specifically called B/s mode. Recognizing the characteristics of these structures is critical to the selection of the system.


1, the performance of the system


In the performance of the system, B/s has the advantage of its remote browsing and information acquisition flexibility. Any time, any place, any system, as long as the browser can use the Internet, you can use the B/S system terminal.


However, the use of B/s structure, the client can only complete browsing, query, data entry and other simple functions, most of the work by the server, which makes the server's heavy burden. With the C/s structure, both the client and the server can handle the task, which requires a higher client, but it can reduce the pressure on the server. Furthermore, because the client uses the browser, the information published on the Internet must be in HTML format, and most of the other format files are stored in the form of attachments. and HTML format file (that is, Web page) is not easy to edit and modify, to file management brings a lot of inconvenience.


2, the development of the system


The C/s structure is built on the base of middleware products, which requires the application developers to deal with system-level problems, such as transaction management, Message Queuing, data replication and synchronization, communication security and so on. This puts a higher demand on application developers and forces application developers to devote a lot of effort to solving problems outside the application. This complicates application maintenance, porting, and interoperability. If the client is on a different operating system, the C/s structure software needs to develop different versions of the client software. However, compared with B/s structure, the development history of C/S technology is more "long". From the technical maturity and software design, the level of the developer's Mastery, C/s technology should be more mature and more reliable.


3, the system upgrades maintenance


Part of the module of C/s system changes, it is necessary to link to other modules of the changes, so that the system upgrades the cost is relatively large. b/S and c/s processing mode, it greatly simplifies the client, as long as the client machine can access the Internet. For b/S, development, maintenance and so on almost all of the work is also concentrated in the server, when the enterprise to upgrade the network application, just update the server side of the software can, which reduces the remote user system maintenance and upgrade costs. If the client's software system upgrades more frequently, then the B/s structure of the product advantage is obvious-all the upgrade operations only need to be carried out for the server, which for those points with a wide range of applications is very valuable, for example, some recruitment sites need to use B/S mode, the client dispersed, and Only a simple browsing and a small amount of information input are required.


4, the advantages and disadvantages of C/s mode


Advantages of the ★C/S model


Because the client implementation is directly connected to the server, there is no intermediate link, so the response speed is fast.


The operation of the interface is beautiful, various forms, can fully meet the customer's own personalized requirements.


The management Information System of C/s structure has strong transaction processing ability and can realize complex business process.


Disadvantages of the ★C/S model


Requires a dedicated client installation program, weak distribution, for a wide range of points and do not have network conditions of user groups, can not achieve rapid deployment of installation and configuration.


Poor compatibility, for different development tools, has a greater limitation. If you use a different tool, you need to rewrite the program again.


Development cost is high, need to have a certain professional level of technical personnel to complete.


5, b/S model of advantages and disadvantages


Advantages of the ★B/S model


Has the distribution characteristic, may carry on the inquiry, browsing and so on the business processing anytime and anywhere.


Business expansion is simple and convenient, add the server function by adding Web pages.


Maintenance is simple and convenient, you need to change the Web page, you can achieve synchronization of all users updates.


The development is simple, the sharing is strong.


Disadvantages of the ★B/S model


Personalized features are significantly reduced, can not achieve a personalized functional requirements.


The operation is a mouse for the most basic mode of operation, can not meet the requirements of rapid operation.


Page dynamic Refresh, the response speed is significantly reduced.


Unable to implement paging display, resulting in greater pressure on database access.


Function weakening, it is difficult to realize the special function requirement under traditional mode.


In recent years, with the development of hardware and software technology and the improvement of people's awareness, Web applications have been widely popularized, on the one hand, the Internet in the promotion of information sharing and e-commerce development, such as Sina, Sohu, 8848 and other large sites continue to emerge, on the other hand, with Java, CGI and other network technology mature, based on B/s structure of large-scale software gradually show great advantage. At the same time, there is a focus on what kind of servers to meet the needs of different users, how to ensure that the Web server can be a long-term stable operation, in order to meet such requirements of the Web test also become very important.


The current Web test is primarily done with Web test tools plus good test cases, and we think there are two main types of testing: Benchmark, non-benchmark


Benchmarking: The test tool has provided a standard test case library, including static test cases (HTM, JPG), dynamic test Cases (CGI), and SSL test cases. This kind of test tool is divided into the test case library, the console program, the client program three parts. It is the principle that the Web server to open a specific Web service program, and run the test case, the console program for each client to follow a certain sequence of script access to the various test cases of the Web server, each request is completed, each client to the console report access to the structure, When a test set is completed by the console will be integrated statistics of all the information, the test process in the console also need to use SNMP protocol for real-time monitoring of the server, integrated two factors can reflect the Web server under different pressures of the comprehensive performance.


In the testing process, the main factors affecting the test results are network environment, client performance. At present, regardless of the IA architecture server or Sun, HP, IBM's UNIX server performance is becoming more and more superior, it is possible to appear under 100MB network can not provide sufficient network pressure, it is possible that the network first bottlenecks, This requires extending to the 1000MB network environment or using multiple network segments to provide sufficient pressure on the server, and stable clients are also important for testing because the client's performance degradation can cause the system to crash or fail to provide a stable test pressure, resulting in a deviation of the test results. How much of a client can stabilize the number of connections is based on different hardware configuration and operating system, so the client's hardware resources monitoring is to ensure that the client can be a stable operation of the necessary means.


Because this kind of test tool uses is the tool developer to provide the test case set, although also has the certain authority, but the present perfect test case set also does not cover all Web application situation, therefore also cannot fully manifests the Web server complete performance, Therefore, this kind of testing tool is more suitable for the IT media to the Web server software and hardware horizontal contrast test, in the test object and the environment is generally unified, can compare each test object's performance difference. And for the actual application of the Web server to test, the use of such a test tool is not appropriate, we will continue to introduce in the future of the Test ramble.




This article is reproduced from the 51testing forum



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.