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, AppianTaskSetfrom locust import task, HttpUserclass 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 = TrueI 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
Could you please check log in appian?¿ Do you see any error? (you are receiving a 500 (internal server error) from appian)
I am not able to click on download excel file link in appian-locust. how can we use documentdownloadlink in appian-locust as I didn't find any function related to this. Is there any other way to do this activity in appian-locust.
Quick response will be much appreciated.
Regards.
Thanks for your reply