I am working on a feature that should behave differently based on whether or not Sitecore believes that the current Contact is legitimate or a malicious bot.
I am using
ContactClassification.IsRobot(Tracker.Current.Contact.System.Classification) to determine whether the current contact has been flagged as a robot. It's been pretty easy for me to persist this Boolean value on a view model, surface it in my view, and change the behavior on the front end as a result.
The main issue I am facing is testing my feature. I would be easy for me to inject a superficial True/False value for testing purposes, however, I'm more interested in testing the feature as a true bot would see it. This begs the question: Is there a known way to have a visit flagged as a robot for testing purposes?
My goal is not to have to develop an actual malicious bot just to test my feature.