def setBatching(self, value): b = BatchInfo(value) b.id_ = value self.eyes.batch = b self.eyes.open(self.driver, "Test app", value, { 'width': 1680, 'height': 800 }) self.eyes.force_full_page_screenshot = True self.eyes.use_css_transition = True
def setUp(self): self.eyes = Eyes() self.eyes.api_key = os.environ.get("APPLITOOLS_API_KEY") batch = BatchInfo("Hackathon") batch.id_ = '666' self.eyes.batch = batch super().setUp() self.eyes.open( self.driver, "Hackathon", self._testMethodName, {"width": self.BROWSER_WIDTH, "height": self.BROWSER_HEIGHT}, )