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

Certified Senior Developer
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:

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Hi Jithesh,

    When I execute the script with 1 user the upload file works good but I execute the script with 2 or more users it throughs below error:

    2 File "C:\Users\mohammad.war\PycharmProjects\AppianLocust\.venv\Lib\site-packages\locust\user\task.py", line 347, in run self.execute_next_task() File "C:\Users\mohammad.war\PycharmProjects\AppianLocust\.venv\Lib\site-packages\locust\user\task.py", line 372, in execute_next_task self.execute_task(self._task_queue.pop(0)) File "C:\Users\mohammad.war\PycharmProjects\AppianLocust\.venv\Lib\site-packages\locust\user\task.py", line 384, in execute_task task(self) File "C:\Users\mohammad.war\PycharmProjects\AppianLocust\Maestro\ValidateData.py", line 32, in ValidateATL alt_UiForm.upload_document_to_upload_field('Upload Activity Task Loader',testData['filePath']) File "C:\Users\mohammad.war\PycharmProjects\AppianLocust\.venv\Lib\site-packages\appian_locust\uiform\uiform.py", line 1135, in upload_document_to_upload_field component = find_component_by_attribute_in_dict( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mohammad.war\PycharmProjects\AppianLocust\.venv\Lib\site-packages\appian_locust\utilities\helper.py", line 209, in find_component_by_attribute_in_dict component = find_component_by_type_and_attribute_and_index_in_dict(component_tree, attribute=attribute, value=value, raise_error=raise_error) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\mohammad.war\PycharmProjects\AppianLocust\.venv\Lib\site-packages\appian_locust\utilities\helper.py", line 351, in find_component_by_type_and_attribute_and_index_in_dict raise ComponentNotFoundException(f"No components with {attribute} '{value}' found on page") No components with label 'Upload Activity Task Loader' found on page