Asset Performance Testing: 1. Overview
Asset Performance Testing: 1. Overview
Asset Performance Testing: 1. Overview
Updated: 03/11/2019
Synopsis: This document covers Performance
Testing workflow. How new test will be added in By: Ashish Kamble, Bentley Systems
the solution and how to run the tests through Inc.
various ways.
Scope: Asset Performance Testing and
Benchmarking
2. Best Practices
Utilize 3A’s (Arrange, Act, Assert where appropriate)
Tests should be generically written to any customer environment.
Use readable names for tests.
If you find yourselves copying the same piece of code, refactor. Use OOP best practices.
Tests should contain supporting data for them to function properly. A database project will
be provided to setup this data.
Page 1 of 8
03/27/2018
Step 2: Expand the HE Web Load Performance Tests project and open the settings.xml
Tags of Data:
User :The user tag specify the user which will perform the tests. That tag contain username and
password which required for login the application to perform tests.
AlimUrl : This is the website link on which we have to perform performance test operations.
Now,
1) Open Dumps folder
Page 2 of 8
03/27/2018
Page 3 of 8
03/27/2018
Page 4 of 8
03/27/2018
20) option 1 for converting whole directory and 2 for specific file path, Open webtest folder
for the path
Page 5 of 8
03/27/2018
Page 6 of 8
03/27/2018
5. Execution of Tests.
Build and Run your test.
6.Debugging
Like any C# application, you can debug your Alim_Performance_Application Tests. To do this, first build
the solution. Place your breakpoint somewhere in the test and then either from the Test Explorer or the
Class file start debugging the test. Refer to "5: Execution of Tests"
7.Report Generation
After successful completion of load test you can create Excel file for the load performance test.
References
Page 7 of 8
03/27/2018
o https://stackoverflow.com/questions/22571267/how-to-verify-an-xpath-expression-in-
chrome-developers-tool-or-firefoxs-firebug/22571294
o http://innovativeteams.net/strategies-for-selenium-ui-testing/
o https://stackify.com/unit-testing-basics-best-practices/
o https://testing.googleblog.com/2015/04/just-say-no-to-more-end-to-end-tests.html
o https://github.com/nunit/nunit-csharp-samples
Page 8 of 8