Path:
tests/end2end/screens/project_index/import_document_from_reqif/import_reqif_cancel_import/test_case.py
Lines:
37
Non-empty lines:
29
Non-empty lines covered with requirements:
29 / 29 (100.0%)
Functions:
2
Functions covered by requirements:
2 / 2 (100.0%)
1
"""2
@relation(SDOC-SRS-72, scope=file)3
"""4
5
import os
6
7
from tests.end2end.e2e_case import E2ECase
8
from tests.end2end.helpers.screens.project_index.form_import_reqif import (
9
Form_ImportReqIF,
10
)11
from tests.end2end.helpers.screens.project_index.screen_project_index import (
12
Screen_ProjectIndex,
13
)14
from tests.end2end.server import SDocTestServer
15
16
path_to_this_test_file_folder = os.path.dirname(os.path.abspath(__file__))
17
path_to_reqif_sample = os.path.join(
18
path_to_this_test_file_folder, "sample.reqif"
19
)20
21
22
class Test(E2ECase):
23
def test(self):
24
with SDocTestServer(
25
input_path=path_to_this_test_file_folder
26
) as test_server:
27
self.open(test_server.get_host_and_port())
28
29
screen_project_index = Screen_ProjectIndex(self)
30
screen_project_index.assert_on_screen()
31
screen_project_index.assert_empty_tree()
32
33
form_import: Form_ImportReqIF = (
34
screen_project_index.do_open_modal_import_reqif()
35
)36
37
form_import.do_form_cancel()