Skip to content

Commit

Permalink
main folder name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
tauqirsarwar1 committed Mar 22, 2024
1 parent a18aedc commit 7964450
Show file tree
Hide file tree
Showing 87 changed files with 283 additions and 283 deletions.
135 changes: 0 additions & 135 deletions bp_core/setup/setup_tests/test_installation_check.py

This file was deleted.

8 changes: 4 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pytest_plugins = ["bp_core.plugin",
"bp_core.lib.pytest_testrail_client.pytest_testrail_client",
"bp_core.notifications.slack_plugin",
"bp_core.notifications.teams_plugin"
pytest_plugins = ["main.plugin",
"main.lib.pytest_testrail_client.pytest_testrail_client",
"main.notifications.slack_plugin",
"main.notifications.teams_plugin"
]
2 changes: 1 addition & 1 deletion frontend/test_project/features/api/test_feature.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from os import environ

import pytest
from bp_core.backend.common.step_definitions.steps_common import *
from main.backend.common.step_definitions.steps_common import *
from assertpy import assert_that
from openai import OpenAI

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pytest_bdd import when, parsers

from bp_core.backend.api_utils.utils import (
from main.backend.api_utils.utils import (
post_request,
get_request,
put_request,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import datetime
from pytest_bdd import when, parsers, given, then
from bp_core.frontend.common.utils.locator_parser import Locators
from bp_core.frontend.common.helpers.selenium_generics import SeleniumGenerics
from main.frontend.common.utils.locator_parser import Locators
from main.frontend.common.helpers.selenium_generics import SeleniumGenerics
import re
from assertpy import assert_that
from selenium.webdriver.common.by import By
from bp_core.frontend.common.helpers.app import context_manager
from main.frontend.common.helpers.app import context_manager
from pathlib import Path

from bp_core.utils import data_manager
from main.utils import data_manager

from bp_core.frontend.common.step_definitions.attribute_assertion import \
from main.frontend.common.step_definitions.attribute_assertion import \
element_displayed, wait_for_displayed
from bp_core.frontend.common.step_definitions.click_touch_and_keyboard_actions import click_on_locator
from bp_core.frontend.common.step_definitions.text_assertion_editing import set_element_value, \
from main.frontend.common.step_definitions.click_touch_and_keyboard_actions import click_on_locator
from main.frontend.common.step_definitions.text_assertion_editing import set_element_value, \
element_equals_text

MOBILE_SUFFIX = "_mob"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from frontend.test_project.step_definitions.shared_steps.api_common import *
from frontend.test_project.step_definitions.shared_steps.api_sample import *
from frontend.test_project.step_definitions.shared_steps.api_assertions import *
from bp_core.plugin import PROJECT_DIR
from main.plugin import PROJECT_DIR

scenarios(os.path.join(PROJECT_DIR, "frontend/test_project/features/api/api_tests.feature"))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os

from pytest_bdd import scenarios
from bp_core.plugin import PROJECT_DIR
from main.plugin import PROJECT_DIR
from frontend.test_project.step_definitions.shared_steps.common_steps import *
from bp_core.frontend.common.step_definitions import *
from main.frontend.common.step_definitions import *


scenarios(os.path.join(PROJECT_DIR, "frontend/test_project/features/mobile/ios_login.feature"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pytest_bdd import scenarios
from frontend.test_project.step_definitions.shared_steps.common_steps import *
from bp_core.plugin import PROJECT_DIR
from main.plugin import PROJECT_DIR

scenarios(os.path.join(PROJECT_DIR, "frontend/test_project/features/web/login_tests.feature"))
scenarios(os.path.join(PROJECT_DIR, "frontend/test_project/features/visual/visual_tests.feature"))
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import requests

from bp_core.backend.common.utils.custom_exceptions import InvalidFileFormatException, FileNotFoundException
from bp_core.backend.common.utils.logger_config import logger
from main.backend.common.utils.custom_exceptions import InvalidFileFormatException, FileNotFoundException
from main.backend.common.utils.logger_config import logger

session = requests.Session()

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import structlog
from pytest import FixtureRequest

from bp_core.backend.common.utils import utils, helpers, auth as boilerplate_auth
from bp_core.utils import data_manager
from main.backend.common.utils import utils, helpers, auth as boilerplate_auth
from main.utils import data_manager

logger = structlog.get_logger(__name__)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import structlog
from requests.auth import AuthBase

from bp_core.utils.exceptions import ApiException
from main.utils.exceptions import ApiException

logger = structlog.get_logger(__name__)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections import namedtuple
from pathlib import Path
from typing import Tuple
from bp_core.utils import env_variables
from main.utils import env_variables

Dataset = namedtuple("Dataset", "request_args set_env")

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait

from bp_core.frontend.common.utils.containers import WindowPosition, WindowSize
from bp_core.utils.exceptions import BrowserException
from main.frontend.common.utils.containers import WindowPosition, WindowSize
from main.utils.exceptions import BrowserException

logger = structlog.get_logger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.ui import WebDriverWait

from bp_core.frontend.common.utils import wait
from bp_core.frontend.common.utils.containers import Locator, ShadowLocator, ValidLocatorTypes
from bp_core.frontend.common.utils.locator_parser import parse_locator
from main.frontend.common.utils import wait
from main.frontend.common.utils.containers import Locator, ShadowLocator, ValidLocatorTypes
from main.frontend.common.utils.locator_parser import parse_locator
from selenium.common.exceptions import ElementNotVisibleException, NoSuchElementException
from bp_core.frontend.common.utils.wait import wait_until
from main.frontend.common.utils.wait import wait_until

logger = structlog.get_logger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.remote.webelement import WebElement

from bp_core.frontend.common.helpers.browser import BrowserInteraction
from bp_core.frontend.common.helpers.elements import ElementInteraction
from bp_core.frontend.common.utils.containers import Locator, ShadowLocator
from bp_core.frontend.common.helpers.app import App
from main.frontend.common.helpers.browser import BrowserInteraction
from main.frontend.common.helpers.elements import ElementInteraction
from main.frontend.common.utils.containers import Locator, ShadowLocator
from main.frontend.common.helpers.app import App

logger = structlog.get_logger(__name__)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from bp_core.frontend.common.utils import visual_utils
from main.frontend.common.utils import visual_utils

# Short Ciruit are_images_same function to are_two_images_look_same function
# in this helper module.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import typing
from selenium.webdriver.remote.webelement import WebElement

from bp_core.frontend.common.helpers.selenium_generics import SeleniumGenerics
from bp_core.frontend.common.utils.containers import Locator, ShadowLocator
from bp_core.frontend.common.utils import visual_utils
from main.frontend.common.helpers.selenium_generics import SeleniumGenerics
from main.frontend.common.utils.containers import Locator, ShadowLocator
from main.frontend.common.utils import visual_utils


def are_two_webelements_look_same(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

from pytest_bdd import parsers, given, when, then
from pytest_check import check
from bp_core.frontend.common.helpers.app import context_manager
from main.frontend.common.helpers.app import context_manager
from selenium.common.exceptions import TimeoutException
from assertpy import assert_that
from bp_core.frontend.common.helpers.selenium_generics import SeleniumGenerics
from bp_core.frontend.common.step_definitions.steps_common import MOBILE_SUFFIX
from bp_core.frontend.common.utils.locator_parser import Locators
from bp_core.utils import data_manager
from main.frontend.common.helpers.selenium_generics import SeleniumGenerics
from main.frontend.common.step_definitions.steps_common import MOBILE_SUFFIX
from main.frontend.common.utils.locator_parser import Locators
from main.utils import data_manager

logger = structlog.get_logger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
from pathlib import Path
from pytest_bdd import parsers, given, when, then
from pytest_check import check
from bp_core.frontend.common.utils.containers import WindowSize
from main.frontend.common.utils.containers import WindowSize
from assertpy import assert_that
from bp_core.frontend.common.helpers.selenium_generics import SeleniumGenerics
from bp_core.frontend.common.utils.locator_parser import Locators
from bp_core.utils import data_manager
from bp_core.utils.utils import remote_execute_cmd_commands
from main.frontend.common.helpers.selenium_generics import SeleniumGenerics
from main.frontend.common.utils.locator_parser import Locators
from main.utils import data_manager
from main.utils.utils import remote_execute_cmd_commands

logger = structlog.get_logger(__name__)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

import structlog
from pytest_bdd import parsers, given, when, then
from bp_core.frontend.common.helpers.app import context_manager
from main.frontend.common.helpers.app import context_manager
from selenium.common.exceptions import NoSuchElementException
from bp_core.frontend.common.helpers.selenium_generics import SeleniumGenerics
from bp_core.frontend.common.step_definitions.steps_common import MOBILE_SUFFIX
from bp_core.frontend.common.utils.locator_parser import Locators
from bp_core.utils import data_manager
from main.frontend.common.helpers.selenium_generics import SeleniumGenerics
from main.frontend.common.step_definitions.steps_common import MOBILE_SUFFIX
from main.frontend.common.utils.locator_parser import Locators
from main.utils import data_manager

logger = structlog.get_logger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

from datetime import datetime, timedelta
from pytest_bdd import parsers, given, when
from bp_core.frontend.common.helpers.app import context_manager
from bp_core.frontend.common.helpers.selenium_generics import SeleniumGenerics
from bp_core.frontend.common.step_definitions.steps_common import MOBILE_SUFFIX
from bp_core.frontend.common.utils.locator_parser import Locators
from main.frontend.common.helpers.app import context_manager
from main.frontend.common.helpers.selenium_generics import SeleniumGenerics
from main.frontend.common.step_definitions.steps_common import MOBILE_SUFFIX
from main.frontend.common.utils.locator_parser import Locators

logger = structlog.get_logger(__name__)

Expand Down
Loading

0 comments on commit 7964450

Please sign in to comment.