I am new to Appian-Locust and require some assistance in order to create the test script for Performance testing.

I have created a test script using Appian-Locust and Locust as library, but I am facing issue at user level and server level. Please find the below code:

from appian_locust import AppianTaskSequence, AppianTaskSet
from locust import task, HttpUser


class Maestro(AppianTaskSet):

@task
def homePage(self):
response = self.client.get('/suite/sites/telus-tools')
if response.ok:
pass
else:
print('Application link not found')


DesignUiForm = self.appian.visitor.visit_application_by_name('Maestro Workflow Management')
# DesignUiForm = self.appian.visitor.visit_application_by_id(1)
# DesignUiForm.click('Telus Workflow Management')


# self.appian.visitor.visit_record_type('Activity')
# self.appian.visitor.visit_report('TWM_activityRecordList',True)
# self.appian.visitor.visit_application_by_name('Telus Workflow Management','TWM')


class MyUser(HttpUser):
tasks = [Maestro]
host = 'https://xxxxx.appiancloud.com'
auth = ["username", "password"]

def __init__(self, environment) -> None:
super().__init__(environment)
self.client.record_mode = True

I am getting below error when trying to run this code:

Error report
# occurrences Error
------------------|-------------------------------------------------------------------------------------------------------------------------------------------
3 GET Design.ApplicationList: HTTPError('500 Server Error: 500 for uri: /suite/rest/a/applications/latest/app/design Username: username')
------------------|-------------------------------------------------------------------------------------------------------------------------------------------


It would be most appreciated if some help me in resolving this issue as early as possible.

Thanks,
Shafi




  Discussion posts and replies are publicly visible

Parents Reply Children
No Data