Tracking logs and load on the web server
The web server keeps a special error log. For example, when a user visits a non-existent page, he registers a 404 error in his log file. To simplify the work, such files are processed by special programs. They group data, provide convenient visualizations, and allow you to customize certain behaviors in case of errors. For example, these programs can send you an email or an SMS message. Log analysis is a great way to increase the fault tolerance of a web server.
Tools for automatic analysis
Site Alarm specializes in this task. Our product verifies your website in the same way as any auditor does. It is a simple and powerful tool based on artificial intelligence technology. After checking, you get a list of specific items, the correction of which will improve your site. Each item of the report is provided with a reference and will be understandable even for beginners.
Testing with Selenium
Selenium is a special program that allows you to control the browser. Using it, the programmer sets the sequence of actions as if the user were doing it. You can create scenarios for ordering, registering or booking a hotel and run them automatically before each update of the functionality. So you can track errors before they get to the main server.
Selenium allows you to execute scripts in various browsers, such as Firefox, Chrome, Opera, Internet Explore and even in mobile browsers for Android. The [selenoid] program (https://aerokube.com/selenoid/latest / “Multi-threaded Selenium startup”) allows you to run multiple scripts in parallel on the same computer.
Writing tests takes a long time and require updating along with updating the functionality. You should have a server that will run the test scripts. Finding a programmer who knows Selenium is not so easy. But you can use our product UI tester. It allows you to create tests in a matter of minutes and run them on our cloud. It also allows you to receive an email to a temporary address and click on the links from the letters.
Unit tests
Unit tests are a set of functions made to test certain blocks of code. Usually Unit tests are used for critical business logic and specific algorithms. For example, the API of the payment system, the algorithm for calculating the cost of delivery, building a chain of transfers for ticket sales services, etc. If your project uses some important key algorithm, then be sure to ask your programmer to cover it with Unit tests. This will not only save you from bugs, but also save programmers from unnecessary worries.
If you use [GitHub](https://github.com / “Git repository”) or [Bitbucket](https://bitbucket.org / “Git repository”), then it will be useful to configure the execution of Unit tests every time the programmer updates the code.
Tracking user behavior
You can track potential problems by analyzing statistics. For example, if you had 50 orders a day all week, and today there are only 10, then this is a clear reason to investigate.
Web analytics tools such as Google analytics allow you to collect such statistics and build convenient graphs for tracking data. Also Google analytics will inform you about broken and too slow pages.