def test_random_location(self, domain):
        """
        Execute a test for the given domain at a random location.
        Optional key is required for Google's public instance.
        """
        locations = self.list_locations()
        test = self.request_test(domain, random.choice(locations))
        try:
            return test['data']['userUrl']
        except __HOLE__:
            return "Error: {0}".format(test)
dataset/ETHPy150Open StackStorm/st2contrib/packs/webpagetest/actions/lib/webpagetest.py/WebPageTestAction.test_random_location