Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from locust import HttpLocust, TaskSet, task, between
from locustio.confluence.http_actions import login_and_view_dashboard, view_page_and_tree, view_dashboard, view_blog, \
search_cql_and_view_results, open_editor_and_create_blog, create_and_edit_page, comment_page, view_attachments, \
upload_attachments, like_page
from locustio.common_utils import ActionPercentage
from util.conf import CONFLUENCE_SETTINGS
from extension.confluence.extension_locust import app_specific_action
action = ActionPercentage(config_yml=CONFLUENCE_SETTINGS)
class ConfluenceBehavior(TaskSet):
def on_start(self):
login_and_view_dashboard(self)
@task(action.percentage('view_page'))
def view_page_action(self):
view_page_and_tree(self)
@task(action.percentage('view_dashboard'))
def view_dashboard_action(self):
view_dashboard(self)
@task(action.percentage('view_blog'))
from locust import HttpLocust, TaskSet, task, between
from locustio.jira.http_actions import login_and_view_dashboard, create_issue, search_jql, view_issue, \
view_project_summary, view_dashboard, edit_issue, add_comment, browse_boards, view_kanban_board, view_scrum_board, \
view_backlog, browse_projects
from locustio.common_utils import ActionPercentage
from extension.jira.extension_locust import app_specific_action
from util.conf import JIRA_SETTINGS
action = ActionPercentage(config_yml=JIRA_SETTINGS)
class JiraBehavior(TaskSet):
def on_start(self):
login_and_view_dashboard(self)
@task(action.percentage('create_issue'))
def create_issue_action(self):
create_issue(self)
@task(action.percentage('search_jql'))
def search_jql_action(self):
search_jql(self)
@task(action.percentage('view_issue'))