-
Notifications
You must be signed in to change notification settings - Fork 132
Performance measures
Jakub Raczek edited this page Aug 14, 2016
·
10 revisions
That functionality together with JMeter and Teamcity can be used for measuring performance of a web application on the client and server side. More details can be found here.
Example of performance test:
namespace Objectivity.Test.Automation.Tests.NUnit.Tests
{
using Automation.Tests.PageObjects.PageObjects.TheInternet;
using global::NUnit.Framework;
/// <summary>
/// Tests to test framework
/// </summary>
[TestFixture]
public class PerformanceTestsNUnit : ProjectTestBase
{
[Test]
[Repeat(3)]
public void HerokuappTests()
{
new InternetPage(this.DriverContext).OpenHomePageAndMeasureTime();
}
}
}
Example of Page Object to use Performance measure functionality from our framework, more details here:
/// <summary>
/// Methods for this HomePage
/// </summary>
/// <returns>Returns Homepage</returns>
public InternetPage OpenHomePageAndMeasureTime()
{
var url = BaseConfiguration.GetUrlValue;
this.Driver.NavigateToAndMeasureTime(new Uri(url), waitForAjax: true);
Logger.Info(CultureInfo.CurrentCulture, "Opening page {0}", url);
return this;
}
Performance class API can be found here.
- Home
- Getting started
- Parallel tests execution
- MsTest DataDriven tests from Xml and CSV files
- NUnit DataDriven tests from Xml, CSV and Excel files
- Comparing files by NUnit DataDriven tests
- Visual Testing
- Screen shots: full desktop, selenium. PageSource saving
- Verify-asserts without stop tests
- Downloading files
- Helpers
- Override browser profile preferences, install browser extensions, Headless mode
- Debugging Test.Automation framework
- Logging
- Performance measures
- Webdriver Extends
- More common locators
- Selenium-Grid-support
- Advanced Browser Capabilities and Options
- AngularJS synchronization
- Update App.config or appsettings.json
- Cross browser parallel test execution with testing-Cloud-Providers\SeleniumGrid
- Verifying Javascript Errors from browser
- Enabling Performance Log for Chrome
- Azure DevOps Support
- Edge browser Support
- Downloading and running Selenium Grid with Powershell
- Run Ocaramba tests with Docker container
- HTTP auth in Internet explorer
- ExtentReports Support