The following sections are related to the test environment
Running a ping on all pages in the site
Follow these steps to run a quick fetch of all the pages of the system. The test runs against the production website for approximately 15 minutes.
git clone https://github.com/omalab/omatest.git
bundle install
cucumber feature/project/whole_shebang.feature:3
Once the test is finished, make sure to visit the PaperTrail log and see if any of the web dynos have exceeded their memory. If so, restart them.
To change the target from the production website to the staging website, goto features/step_definitions/login_common.rb and changevisit 'http://omatestuser75inc.omaengine.com'
tovisit 'http://omatestuser75inc.omamatic.com'
Miscellaneous
External site access during test run
The following external sites are accessed during test run
- www.alexa.com/siteinfo
- lsapi.seomoz.com/linkscape/url-metrics/
- us.api.semrush.com/?type=phrase_this
- us.api.semrush.com/?type=phrase_related
- us.api.semrush.com/?type=domain_organic
- us.fullsearch-api.semrush.com/?type=phrase_fullsearch
- us.fullsearch-api.semrush.com/?type=phrase_this
- us.fullsearch-api.semrush.com/?type=url_organic
- api.ahrefs.com/get_backlinks_count_with_anchor.php
- api.url2png.com/v3/
- www.gravatar.com/avatar.php
- www.google.com/s2/favicons
- Google Trends/Insights
Tracker for pages that cause timeouts, memory exceeded errors and slow loading
May 29 2013 - Removed n+1 queries
- Number of times memory exceeded during test suite - 4
- H12 timeouts - 4
- Total processing time for test suite - 613s
- Slowest pages
/projects/241/domains/872/traffic_box 30003
/projects/241/domains/872/trust_box 30003
/projects/241/domains/872/fact_box 30000
/projects/241/charts/common_sites?method=get&project_id=241&type=common_sites 30000
/projects/241/keywords/13536 15676
/projects/241/domains/872/load_data_links?&type=anchors 14424
/projects/241/charts/domains_backlink_symmetry?project_id=241 14074
/projects/241/domains/872/links/all 11698
/projects/241/domains/872/links/momentum 11277
/projects/241/domains/872/links/relevance 11013
/projects/241/domains/872/links/authority 10560
/projects/241/mentions/load_data?channel=forums 10038
/projects/241/domains/872/links/new_links 9623
/projects/241/competitor_research/individual_domain_analysis 9450
/projects/241/mentions/load_data?channel=twitter 7143
/projects/241/insights/load_tab?&tab=place%26people 4044
/projects/241/charts/related_keywords?method=get&project_id=241&type=related_keywords 3084
/projects/241/leads 3016
/projects/241/charts/domain_keyword_power?id=13536&method=get&project_id=241&type=backlinks 2968
May 28 2013 - Baseline
- Number of times memory exceeded during test suite - 7
- H12 timeouts - 7
- Total processing time for test suite - (783s - first run; 550s - second run)
- Slowest pages
/projects/241/domains/872/traffic_box 30007
/projects/241/domains/872/trust_box 30002
/projects/241/domains/872/fact_box 30000
/projects/241/charts/common_sites?method=get&project_id=241&type=common_sites 30000
/projects/241/charts/domains_backlink_symmetry?project_id=241 30000
/projects/241/insights/load_tab?&tab=place%26people 30000
/projects/241/leads 30000
/projects/241/contacts/load_list?&type=new_contacts 26592
/projects/241/domains/872/load_data?type=overview 25572
/projects/241/mentions/load_data?channel=web 25498
/projects/241/competitor_research/common_backlinks 15406
/projects/241/domains/872/links/all 14849
/projects/241/domains/872/links/strategic 14138
/projects/241/insights/load_tab?&tab=sentiment 10914
/projects/241/domains/872/links/authority 10645
/projects/241/keyword_research/research_keywords 9284
/projects/241/domains/872/links/new_links 8909
/projects/241/contacts/load_list?&type=contacts 8093