Slide 28
Slide 28 text
Copyright (C) DeNA Co.,Ltd. All Rights Reserved.
TQFD@IFMQFSSCʢ͓·͚ʣ
28
config.include AllureRSpec::Adaptor
config.add_formatter('progress')
AllureRSpec.configure do |c|
c.output_dir = './allure-results'
c.clean_dir = false
c.logging_level = Logger::INFO
end
config.before do
@driver = Appium::Driver.new(capability, false)
@driver.start_driver
start_screenrecord
end
config.after do |example|
stop_screenrecord
screenrecord_path = pull_screenrecord
screenshot_path = take_screenshot(@driver)
# attach file to allure report
if example.exception
example.attach_file(screenrecord_path, File.open(screenrecord_path))
example.attach_file(screenshot_path, File.open(screenshot_path))
end
end
Allureͷઃఆ
before eachͰը։࢝
a?er eachͰըऴྃ
Fail࣌ʹϨϙʔτʹఴ