alttester-robotframework-library 2.2.2__tar.gz → 2.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/PKG-INFO +2 -2
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/AltTesterLibrary/AltTesterKeywords.py +53 -3
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/AltTesterLibrary/version.py +1 -1
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/alttester_robotframework_library.egg-info/PKG-INFO +2 -2
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/README.md +0 -0
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/setup.cfg +0 -0
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/setup.py +0 -0
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/AltTesterLibrary/__init__.py +0 -0
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/alttester_robotframework_library.egg-info/SOURCES.txt +0 -0
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/alttester_robotframework_library.egg-info/dependency_links.txt +0 -0
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/alttester_robotframework_library.egg-info/not-zip-safe +0 -0
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/alttester_robotframework_library.egg-info/requires.txt +0 -0
- {alttester_robotframework_library-2.2.2 → alttester_robotframework_library-2.2.4}/src/alttester_robotframework_library.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: alttester-robotframework-library
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: Robot Framework Library for the AltTester® framework. AltTester® is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them.
|
|
5
5
|
Home-page: https://alttester.com/docs/sdk/latest/
|
|
6
6
|
Author: Altom Consulting
|
|
@@ -293,7 +293,7 @@ class AltTesterKeywords(object):
|
|
|
293
293
|
return self._driver.find_object_at_coordinates(coordinates)
|
|
294
294
|
|
|
295
295
|
def find_object_from_object(self, alt_object: AltObject, locator_strategy,
|
|
296
|
-
|
|
296
|
+
locator, camera_by="NAME", camera_value="", enabled=True):
|
|
297
297
|
"""Finds the child of the object on which it is called that respects the given criteria.
|
|
298
298
|
|
|
299
299
|
`locator_strategy` one of the following: ID, NAME, PATH, LAYER,
|
|
@@ -317,8 +317,9 @@ class AltTesterKeywords(object):
|
|
|
317
317
|
| ${child}= | Get Object From Object | ${object} | By.NAME | UIButton
|
|
318
318
|
"""
|
|
319
319
|
return alt_object.find_object_from_object(self.get_by_enum(locator_strategy), locator,
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
camera_by=self.get_by_enum(
|
|
321
|
+
camera_by),
|
|
322
|
+
camera_value=camera_value, enabled=enabled)
|
|
322
323
|
|
|
323
324
|
def get_all_elements(self, camera_by="NAME", camera_value="", enabled=True):
|
|
324
325
|
"""Returns information about every object loaded in the currently loaded scenes. This also means objects that
|
|
@@ -1270,6 +1271,33 @@ class AltTesterKeywords(object):
|
|
|
1270
1271
|
"""
|
|
1271
1272
|
return alt_object.get_visual_element_property(property_name)
|
|
1272
1273
|
|
|
1274
|
+
def wait_for_visual_element_property(self, alt_object: AltObject, property_name, property_value, timeout=20, interval=0.5, get_property_as_string=False):
|
|
1275
|
+
"""Waits until a property of the current object has a specific value and returns the value of the given visual element property.
|
|
1276
|
+
|
|
1277
|
+
alt_object : The AltObject for which we want to wait for property.
|
|
1278
|
+
|
|
1279
|
+
property_name : The name of the property of which value you want. If the property is an array
|
|
1280
|
+
you can specify which element of the array to return by doing ``property[index]``, or if you want a
|
|
1281
|
+
property inside of another property you can get by doing ``property.subProperty``.
|
|
1282
|
+
|
|
1283
|
+
property_value : The value of the component expected.
|
|
1284
|
+
|
|
1285
|
+
timeout : The number of seconds that it will wait for property. Default value is 20 seconds.
|
|
1286
|
+
|
|
1287
|
+
interval : The number of seconds after which it will try to find the object again. The interval should be smaller than timeout. Default value is 0.5.
|
|
1288
|
+
|
|
1289
|
+
get_property_as_string: A boolean value that compares the property_value as a string with the property from the instrumented app.
|
|
1290
|
+
|
|
1291
|
+
Example:
|
|
1292
|
+
|
|
1293
|
+
Wait for property TestBool from Capsule
|
|
1294
|
+
|
|
1295
|
+
| ${object}= | Find Object | NAME | Capsule
|
|
1296
|
+
|
|
1297
|
+
| ${result}= | Wait For Component Property | ${object} | AltExampleScriptCapsule | TestBool | ${True} | Assembly-CSharp
|
|
1298
|
+
"""
|
|
1299
|
+
return alt_object.wait_for_visual_element_property(property_name, property_value, timeout, interval, get_property_as_string)
|
|
1300
|
+
|
|
1273
1301
|
def get_text(self, alt_object: AltObject):
|
|
1274
1302
|
"""Returns text value from alt_object.
|
|
1275
1303
|
|
|
@@ -1672,3 +1700,25 @@ class AltTesterKeywords(object):
|
|
|
1672
1700
|
except AttributeError:
|
|
1673
1701
|
raise ValueError("Invalid log level type: {log_level}. Valid ones are: {options}.".format(
|
|
1674
1702
|
log_level=log_level, options=", ".join(value.name for value in AltLogLevel)))
|
|
1703
|
+
|
|
1704
|
+
def get_implicit_timeout(self):
|
|
1705
|
+
"""Gets the current timeout for the AltTester® commands that use a timeout parameter.
|
|
1706
|
+
|
|
1707
|
+
Example:
|
|
1708
|
+
|
|
1709
|
+
| ${timeout}= | Get Implicit Timeout
|
|
1710
|
+
"""
|
|
1711
|
+
return self._driver.get_implicit_timeout()
|
|
1712
|
+
|
|
1713
|
+
def set_implicit_timeout(self, timeout):
|
|
1714
|
+
"""Sets the timeout for the AltTester® commands that use a timeout parameter.
|
|
1715
|
+
|
|
1716
|
+
timeout : The new timeout in seconds.
|
|
1717
|
+
|
|
1718
|
+
Example:
|
|
1719
|
+
|
|
1720
|
+
Set Implicit Timeout to 5 seconds.
|
|
1721
|
+
|
|
1722
|
+
| Set Implicit Timeout | 5
|
|
1723
|
+
"""
|
|
1724
|
+
self._driver.set_implicit_timeout(timeout)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: alttester-robotframework-library
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: Robot Framework Library for the AltTester® framework. AltTester® is an open-source UI driven test automation tool that helps you find objects in your game and interacts with them.
|
|
5
5
|
Home-page: https://alttester.com/docs/sdk/latest/
|
|
6
6
|
Author: Altom Consulting
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|