Coder Social home page Coder Social logo

browserefficiencytest's People

Contributors

annabanin avatar brheenan avatar calebrouleau avatar jewilder avatar nolanlawson avatar scottlow avatar toddreifsteck avatar tychosnose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

browserefficiencytest's Issues

CNN Scenario doesn't always find headline

The last couple days, the CNN headline link was able to be found by finding the zn-banner class. Today it is no longer working. Today it is under a different class name. We need to find a more robust way to find the top headline on CNN or possibly settle for any article on CNN.

Edge Fails to Start (Chrome Works)

@TychosNose This is following your most recent commit. I pulled down the changes, rebuilt the BrowserEfficiencyTest solution, and attempted to run the tests.

Chrome ran without issue. Once an Edge window opens, the executable gets terminated. Perhaps this is an issue with the 15063 MicrosoftWebDriver executable, rather than the BrowserEfficiencyTest solution?

PS C:\Users\jjdsa\Desktop\Battery Tests\BrowserEfficiencyTest\BrowserEfficiencyTest\bin\Debug> ./BrowserEfficiencyTest.exe -b edge chrome -i 2 -rp C:\Traces -ms cpuUsage -s FastScenario WikipediaUnitedStates
BrowserEfficiencyTest Version: 11.1.0.0
[2017-05-25 10:21:50] --- OS Version ------
[2017-05-25 10:21:50]   BuildLabEx: 15063.0.x86fre.rs2_release.170317-1834
[2017-05-25 10:21:50]   EditionID: Professional
[2017-05-25 10:21:50]   ProductName: Windows 10 Pro
[2017-05-25 10:21:50] ---------------------
[2017-05-25 10:21:50] Pausing before starting first tracing session to reduce interference.
Attempting to connect with the trace controller...
Successfully connected to trace controller.
[2017-05-25 10:22:02] Starting Test Pass
[2017-05-25 10:22:02] Iteration: 0 ------------------
[2017-05-25 10:22:03]  Launching Browser Driver: 'chrome'
Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 52474
Only local connections are allowed.
[2017-05-25 10:22:08]   Executing - Scenario: FastScenario  Iteration: 0  Attempt: 0  Browser: chrome  MeasureSet: cpuUsage
[2017-05-25 10:22:10]     Scenario FastScenario returned in 1.5099187 seconds. Sleep for remaining 8.4900813 seconds.
[2017-05-25 10:22:18]   Completed - Scenario: FastScenario  Iteration: 0  Attempt: 0  Browser: chrome  MeasureSet: cpuUsage
[2017-05-25 10:22:18]  New Tab: Attempting to create a new tab using the javascript method window.open()
[2017-05-25 10:22:20]   Executing - Scenario: WikipediaUnitedStates  Iteration: 0  Attempt: 0  Browser: chrome  MeasureSet: cpuUsage
[2017-05-25 10:22:41]     Scenario WikipediaUnitedStates returned in 22.8342525 seconds. Sleep for remaining 7.1657475 seconds.
[2017-05-25 10:22:48]   Completed - Scenario: WikipediaUnitedStates  Iteration: 0  Attempt: 0  Browser: chrome  MeasureSet: cpuUsage
[2017-05-25 10:22:48]  SUCCESS!  Completed Browser: chrome  Iteration: 0  Attempt: 0  MeasureSet: cpuUsage
[2017-05-25 10:22:48]   Pausing between tracing sessions to reduce interference.
[2017-05-25 10:23:08]  Launching Browser Driver: 'edge'
[10:23:08.195] - Listening on http://localhost:52534/

Unhandled Exception: System.IO.FileNotFoundException: MicrosoftWebDriver.exe
   at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
   at BrowserEfficiencyTest.RemoteWebDriverExtension.CreateDriverAndMaximize(String browser, String browserProfilePath) in C:\Users\jjdsa\Desktop\Battery Tests\BrowserEfficiencyTest\BrowserEfficiencyTest\RemoteWebDriverExtension.cs:line 327
   at BrowserEfficiencyTest.ScenarioRunner.Run() in C:\Users\jjdsa\Desktop\Battery Tests\BrowserEfficiencyTest\BrowserEfficiencyTest\ScenarioRunner.cs:line 213
   at BrowserEfficiencyTest.Program.Main(String[] args) in C:\Users\jjdsa\Desktop\Battery Tests\BrowserEfficiencyTest\BrowserEfficiencyTest\Program.cs:line 46
PS C:\Users\jjdsa\Desktop\Battery Tests\BrowserEfficiencyTest\BrowserEfficiencyTest\bin\Debug>

YahooNews scenario fails frequently

I've observed recently that YahooNews scenario causes the workload to abort quite frequently, the most common exception thrown being related to Timeout:
yahoo1

and another exception sometimes being:
insertbefore

I'm using windows public build 15063, and the latest web driver available.

Refset peak column is difficult to use

The result column for peak refset is the exact string from WPA, which is "###### at XYZs", stating both the peak and the time it occurred at. While useful to know the time of the peak, it also makes aggregation difficult as you need to split and convert the string

No Metrics found for measure set cpuUsage on ETL

I believe I have followed all setup instructions correctly, however none of the cpuUsage data appears to be collected. Also, the generated CSV is empty:

Command

BrowserEfficiencyTest.exe -b edge chrome -i 2 -rp C:\Traces -ms cpuUsage -s FastScenario WikipediaUnitedStates

The tests opened the two browsers, and appeared to run successfully.

Output

Completed Test Pass
- Starting performance processing. -
- Processing ETL C:\Traces\chrome_fastscenario-wikipediaunitedstates_0_cpuUsage_20170509_172604.etl using profile .\MeasureSetDefinitionAssets\CpuUsage.wpaProfile
WPA 10.0.15063.137 (WinBuild.160101.0800)
No Metrics found for measure set cpuUsage on ETL C:\Traces\chrome_fastscenario-wikipediaunitedstates_0_cpuUsage_20170509_172604.etl.
- Processing ETL C:\Traces\chrome_fastscenario-wikipediaunitedstates_0_cpuUsage_20170509_172933.etl using profile .\MeasureSetDefinitionAssets\CpuUsage.wpaProfile
WPA 10.0.15063.137 (WinBuild.160101.0800)
No Metrics found for measure set cpuUsage on ETL C:\Traces\chrome_fastscenario-wikipediaunitedstates_0_cpuUsage_20170509_172933.etl.
- Processing ETL C:\Traces\chrome_fastscenario-wikipediaunitedstates_1_cpuUsage_20170509_173146.etl using profile .\MeasureSetDefinitionAssets\CpuUsage.wpaProfile
WPA 10.0.15063.137 (WinBuild.160101.0800)
No Metrics found for measure set cpuUsage on ETL C:\Traces\chrome_fastscenario-wikipediaunitedstates_1_cpuUsage_20170509_173146.etl.
- Processing ETL C:\Traces\edge_fastscenario-wikipediaunitedstates_0_cpuUsage_20170509_173038.etl using profile .\MeasureSetDefinitionAssets\CpuUsage.wpaProfile
WPA 10.0.15063.137 (WinBuild.160101.0800)
No Metrics found for measure set cpuUsage on ETL C:\Traces\edge_fastscenario-wikipediaunitedstates_0_cpuUsage_20170509_173038.etl.
- Processing ETL C:\Traces\edge_fastscenario-wikipediaunitedstates_1_cpuUsage_20170509_173251.etl using profile .\MeasureSetDefinitionAssets\CpuUsage.wpaProfile
WPA 10.0.15063.137 (WinBuild.160101.0800)
No Metrics found for measure set cpuUsage on ETL C:\Traces\edge_fastscenario-wikipediaunitedstates_1_cpuUsage_20170509_173251.etl.

Generated CSV

EtlFileName,Scenario,Iteration,Browser,DateStamp,TimeStamp,MeasureSet,Measure,Result

Unable to run from elevated command prompt with some platforms

As Todd noted in pull request #4, not all WebDriver platforms support being run from an elevated command prompt.
Here's what I've found works from an elevated command prompt:

  • Edge Insider Preview
  • FireFox

Here's what doesn't work from an elevated command prompt

  • Chrome
  • Edge Fall Release

I haven't tested Opera.
The case for being able to run from an elevated command prompt is to support controlling the Windows Performance Recorder which requires elevated privileges. There workarounds for this such as Todd mentions. This issue is opened to track this issue.

PowerTest only processes ETLs that are in the current working directory

PowerTest only processes energy data from ETLs that are in the same directory as PowerTest.exe. This is a problem since the ElevatorServer currently only saves ETL files to the directory that ElevatorServer.exe is in. This causes PowerTest to not process any ETLs that were captured during the currently run test pass.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.