-
Notifications
You must be signed in to change notification settings - Fork 61
Architecture
Parashuram N edited this page Feb 27, 2014
·
6 revisions
- Run pre-script actions -eg. login, clear cookies.
- Actions like scroll, click, etc. are performed on the page. These actions are defined using the Selenium Web driver wd module. The actions can be simple things like clicking on buttons, scrolling down the page, or can be complex tasks like a merchant checkout workflow.
- The Metrics are measured when the action is performed. A Metric is a quantifiable numbers that can be used to get an idea of how well the website or a hybrid app is performing. Examples of metrics include mean time for each frame when Scrolling average area that is redrawn on the screen or the rate of memory increase during an activity.
-
Probes are data points collected from browser when an action is performed. The raw data from the probe is converted to Metrics. These are collected from various sources like Chrome Timeline graph,
about:tracing
,xperf
or frequency of events like request animation frame.
- Load URL.
- Setup Metrics - eg. initialize counters.
- Setup Probes - eg. add command line flags to browser, reset logs.
- Start Metrics - Start the counter
- Start Probes -
- Perform Actions - eg. scroll, checkout workflow - selenium commands.
- As actions are performed, Probes emit data to Metrics
- Actions end
- Probes teardown - eg. close connections, read final logs
- Metrics teardown - eg. calculate statistics from raw data
- Get results from all metrics