Skip to main content
Known Participant
February 16, 2023
Question

Interacting with UI Form via a test label instead of a label

  • February 16, 2023
  • 17 replies
  • 0 views
This is with regards to Performance Testing. We are using Locust as the tool for PT.
We have certain Interface components where label is not defined as per design. 
When writing PT scripts Locust for Appian provides functions to interact with a "testLabel" if label is not available.
I want to interact with a dropdown using a test label. But the appian interface designer does not provide an attribute called "testLabel" for dropdown component.
Reference:

17 replies

mohammads3449
July 24, 2024

 [mention:1773499239fb483e9eef09a6f69d176b:e9ed411860ed4f2ba0265705b8793d05] could you please suggest a code how to use testLable if label is not available on click download excel file link? as I am new to Appian-locust.

Known Participant
July 25, 2024

Hi [mention:0677becb3a3c422e89986350f890710a:e9ed411860ed4f2ba0265705b8793d05] 

Usually we don't included download link as part of perf test. I am guessing you want to measure the download time for the file.

I don't see any functions provided in "appian for lucust" for this. So I guess you may need to,

1. Get the _documentDownloadLink from json response of your the last ui form interact call.

2. Form the download link url using "/suite/rest/a/content/latest/{opaqueContentId}/o" replace opaqueContentId with _documentDownloadLink

3. Call self.client.get using the above url.

mohammads3449
July 26, 2024

Thanks for update [mention:1773499239fb483e9eef09a6f69d176b:e9ed411860ed4f2ba0265705b8793d05] 

I tried to follow above steps you suggested. But I am get below error:

Error report
# occurrences Error
------------------|-------------------------------------------------------------------------------------------------------------------------------------------1 GET /suite/rest/a/content/latest/_documentDownloadLink/o: HTTPError('500 Server Error: 500 for url: /suite/rest/a/content/latest/_documentDownloadLink/o')
------------------|-------------------------------------------------------------------------------------------------------------------------------------------

On hitting manually below URL :

xxxxx.appiancloud.com/.../o

getting below error on browser:

{"error":"APNX-1-0000-000","message":"An error was encountered while processing your request. "}