Answer the question
In order to leave comments, you need to log in
I use Python + Selenium webdriver + unittest framework. IDE: PyCharm. How to properly connect Allure in my case and start the report assembly?
I will leave part of my code for testing the calculator:
import unittest
import allure
from selenium import webdriver
import dop
class Testing(unittest.TestCase):
def setUp(self):
executable_path = "C:\Python37-32\chromedriver_win32\chromedriver.exe"
self.driver = webdriver.Chrome(executable_path)
self.driver.get('http://XXXXXX')
# self.driver.maximize_window()
# self.driver.implicitly_wait(10)
@allure.feature('Feature1')
@allure.story('Story1')
# Check first
def test_is_button_1_valid(self):
dop.check_button("/html/body/div[@class='buttons']/ul[@class='digits']/li[7]", "1", self)
dop.check_input_field("1", self, False)
def tearDown(self):
self.driver.quit()
if __name__ == "__main__":
unittest.main()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question