I'm working on practicing some good solid DevOps/Agile methodologies, and so one of the things that I'm working on is testing some custom reporting logic that I've written. Here's the scenario that I'm trying to test:
- Navigate to the home page (this triggers a page event that I'm looking to track)
- Navigate to another page that does not trigger this page event.
- Wait for an agent to run (it runs every 30 seconds) to process the page event count.
- Run an API call to verify that my page event count logic is working.
So, doing this manually, I am able to do each of these steps without issue. However, I really want to automated this because it is error prone, takes time (and concentration) to run, and when my manager comes back and asks if I tested this scenario, I can tell them "Yes, we've been testing that every time that we commit code changes".
Here's what I've tried:
- Visual Studio: I've written a call to the website (using WebRequest), but I never get any Contact/Interaction information written to the Mongo DB.
- LoadCompletePro: I've used this tool to simulate someone clicking around on the website, but again, I don't get any Contact or Interaction information written to the Mongo DB.
- Selenium: I ran our Smoke Test on my local computer, which simulates about 20 minutes of solid traffic to the website, but again, I don't get any Contact or Interaction information written to the Mongo DB.
So at this point, I'm stuck at step #2, as I can't seem to get the data recorded to run my custom queries against. I believe that once I get past this hurdle, I can have the code wait for a certain amount of time to give Sitecore a chance to write the data to Mongo, and then for my agent to process the new data.
Has anyone been able to get any automated tools to trigger Sitecore's Analytics? If so, what did you do to make that happen?
I'm currently running on Sitecore 8.1 (original release).