robotframework-lynqa 0.1.0a1__py3-none-any.whl

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.
@@ -0,0 +1,5 @@
1
+ """Robot Framework library for executing Lynqa test runs."""
2
+
3
+ from robotframework_lynqa.library import BASE_URL, LynqaLibrary
4
+
5
+ __all__ = ["BASE_URL", "LynqaLibrary"]
@@ -0,0 +1,347 @@
1
+ """Robot Framework test library and listener for the Lynqa execution agent.
2
+
3
+ This module exposes :class:`LynqaLibrary`, a Robot Framework library that lets you write scenarios in plain Gherkin and
4
+ have them executed by the Lynqa AI agent instead of by locally defined keywords.
5
+
6
+ Scenarios are written with the ``Given``/``When``/``Then`` keywords, each taking a single natural-language step as its
7
+ argument:
8
+
9
+ ::
10
+
11
+ *** Settings ***
12
+ Library robotframework_lynqa.LynqaLibrary api_key=%{API_KEY}
13
+
14
+ *** Variables ***
15
+ ${LYNQA_URL} https://example.com/
16
+
17
+ *** Test Cases ***
18
+ Search For An Item
19
+ Given the home page is open
20
+ When the user searches for an item
21
+ Then matching results are displayed
22
+ """
23
+
24
+ import logging
25
+ import time
26
+ from datetime import datetime
27
+ from typing import Any
28
+
29
+ import pylynqa
30
+ from pylynqa import LynqaClient, TestData, TestRunContext
31
+ from robot.api import SuiteVisitor
32
+ from robot.api.interfaces import ListenerV3
33
+ from robot.libraries.BuiltIn import BuiltIn
34
+
35
+ BASE_URL = "https://api.lynqa.smartesting.com"
36
+
37
+ GHERKIN_KEYWORDS = ("Given", "When", "Then")
38
+
39
+ # Statuses that mean the run is not finished yet.
40
+ PENDING_STATUSES = ("waiting", "running", "not_run")
41
+
42
+ # How often to poll the run status, and how long to wait before giving up.
43
+ POLL_INTERVAL_SECONDS = 5
44
+ RUN_TIMEOUT_SECONDS = 300
45
+
46
+ # Variable names
47
+ URL_VAR = "${LYNQA_URL}"
48
+ LANGUAGE_VAR = "${LYNQA_LANGUAGE}"
49
+ DATETIME_VAR = "${LYNQA_DATETIME}"
50
+ SECRETS_VAR = "&{LYNQA_SECRETS}"
51
+
52
+
53
+ class _GherkinStepCollector(SuiteVisitor):
54
+ """Collect the Gherkin steps of a running test case.
55
+
56
+ Walks a Robot Framework test case and records every keyword call whose name is one of :data:`GHERKIN_KEYWORDS`,
57
+ rebuilding the original Gherkin step (keyword name followed by its argument text).
58
+ """
59
+
60
+ def __init__(self) -> None:
61
+ """Initialize the collector with an empty list of steps."""
62
+ self.steps: list[str] = []
63
+
64
+ def start_keyword(self, keyword) -> None:
65
+ """Record the keyword when it is one of the Gherkin step keywords.
66
+
67
+ :param keyword: Running keyword visited by Robot Framework.
68
+ """
69
+ if keyword.name in GHERKIN_KEYWORDS:
70
+ text_step = ""
71
+ if len(keyword.args) > 0:
72
+ text_step = keyword.args[0]
73
+ self.steps.append(f"{keyword.name} {text_step}")
74
+
75
+
76
+ class LynqaLibrary(ListenerV3):
77
+ """Robot Framework library that runs Gherkin scenarios via Lynqa.
78
+
79
+ Acts both as a test library exposing the Gherkin step keywords (``Given``/``When``/``Then``) and as a listener that
80
+ captures each scenario on :meth:`start_test` and submits it to the Lynqa execution agent.
81
+
82
+ See the :mod:`~robotframework_lynqa.library` module documentation for the configuration variables and a usage
83
+ example.
84
+ """
85
+
86
+ ROBOT_LIBRARY_SCOPE = "TEST"
87
+
88
+ def __init__(self, api_key: str, base_url: str = BASE_URL) -> None:
89
+ """Initialize the Lynqa library.
90
+
91
+ :param api_key: API key used to authenticate against the Lynqa service.
92
+ :param base_url: Base URL of the Lynqa API. Defaults to :data:`BASE_URL`.
93
+ """
94
+ self.ROBOT_LIBRARY_LISTENER = self
95
+ self._init_client(api_key, base_url)
96
+ self._run_id: str = ""
97
+ self._start_error: Exception | None = None
98
+ self._step_index: int = 0
99
+
100
+ self.scenario: str = ""
101
+ self.url: str | None = ""
102
+ self.context: TestRunContext = TestRunContext()
103
+ self.results: dict[str, Any] = {}
104
+
105
+ def _init_client(self, api_key: str, base_url: str):
106
+ """Initialize the Lynqa client with the good parameters.
107
+
108
+ :param api_key: API key used to authenticate against the Lynqa service.
109
+ :param base_url: Base URL of the Lynqa API.
110
+ """
111
+ pylynqa.client._PACKAGE_CONSUMER_NAME = "petit-robot:robotframework-lynqa" # ty: ignore[invalid-assignment] # ruff: ignore[private-member-access]
112
+ self._client = LynqaClient(api_key=api_key, base_url=base_url)
113
+
114
+ # ------------------------------------------------------------------
115
+ # Listener interface
116
+ # ------------------------------------------------------------------
117
+
118
+ def start_test(self, data, result) -> None:
119
+ """Collect the scenario's Gherkin steps when a test starts.
120
+
121
+ Reads the running test case with a :class:`_GherkinStepCollector` visitor and stores its
122
+ ``Given``/``When``/``Then`` steps as the current scenario.
123
+
124
+ Any exception raised while preparing the run is captured and turned into a test failure in :meth:`end_test` (a
125
+ status set here would otherwise be overwritten when the test body runs).
126
+
127
+ :param data: Running test case provided by Robot Framework.
128
+ :param result: Test result object provided by Robot Framework.
129
+ """
130
+
131
+ def collect_steps(data):
132
+ """Collect the Gherkin steps from the running test case."""
133
+ collector = _GherkinStepCollector()
134
+ data.visit(collector)
135
+ return collector.steps
136
+
137
+ self._start_error = None
138
+ self._step_index = 0
139
+ try:
140
+ self.scenario = "\n".join(collect_steps(data))
141
+ url = self._search_variable(URL_VAR)
142
+ self.url = None if url is None else str(url)
143
+ self.context = self._search_context()
144
+ self._execute_lynqa_testrun(name=data.name)
145
+ except Exception as error:
146
+ logging.exception("Lynqa run preparation failed")
147
+ self._start_error = error
148
+
149
+ def end_test(self, data, result) -> None:
150
+ """Fail the current test if :meth:`start_test` caught an exception.
151
+
152
+ :param data: Running test case provided by Robot Framework.
153
+ :param result: Test result object provided by Robot Framework.
154
+ """
155
+ if self._start_error is not None:
156
+ result.status = "FAIL"
157
+ result.message = f"Lynqa execution failed: {self._start_error}"
158
+ return
159
+
160
+ self._report_test_results(result)
161
+
162
+ def start_keyword(self, data, result) -> None:
163
+ """Log the commands and assertions of a Gherkin keyword's Lynqa step.
164
+
165
+ Logging happens here, when the keyword starts, rather than in the keyword body: Robot Framework stops executing
166
+ the bodies of the keywords that follow a failed one, but ``start_keyword`` still fires for them, so every
167
+ Gherkin keyword gets its logs. The step is matched in execution order via :attr:`_step_index`, which is only
168
+ incremented later in :meth:`end_keyword`.
169
+
170
+ :param data: Running keyword provided by Robot Framework.
171
+ :param result: Keyword result object provided by Robot Framework.
172
+ """
173
+ if data.name not in GHERKIN_KEYWORDS:
174
+ return
175
+ self._log_step_details()
176
+
177
+ def end_keyword(self, data, result) -> None:
178
+ """Set each Gherkin keyword's status from its matching Lynqa step.
179
+
180
+ Only the Gherkin step keywords are reported; other keywords (logging, setup, ...) keep the status Robot
181
+ Framework gave them.
182
+
183
+ :param data: Running keyword provided by Robot Framework.
184
+ :param result: Keyword result object provided by Robot Framework.
185
+ """
186
+ if data.name not in GHERKIN_KEYWORDS:
187
+ return
188
+ steps = self.results.get("stepStatuses", [])
189
+ if self._step_index < len(steps):
190
+ step_status = steps[self._step_index].get("status")
191
+ else:
192
+ # No per-step detail: fall back to the overall run status.
193
+ step_status = self.results.get("status")
194
+ result.status = "PASS" if step_status == "success" else "FAIL"
195
+ self._step_index += 1
196
+
197
+ def _execute_lynqa_testrun(self, name: str, timeout: float = RUN_TIMEOUT_SECONDS):
198
+ """Start a Lynqa test run and wait for it to reach a final status.
199
+
200
+ Polls the run status every :data:`POLL_INTERVAL_SECONDS` seconds until it leaves the :data:`PENDING_STATUSES`,
201
+ giving up after ``timeout`` seconds so the run cannot hang forever when a final status is never reached.
202
+
203
+ :param name: Name of the test run.
204
+ :param timeout: Maximum time, in seconds, to wait for the run to finish.
205
+
206
+ :raises TimeoutError: If the run is still pending once ``timeout`` elapses.
207
+ """
208
+ if not self.url:
209
+ raise ValueError(f"No URL configured. Please set the {URL_VAR} variable.") # ruff: ignore[raise-vanilla-args]
210
+
211
+ self._run_id = self._client.add_gherkin_test_run(
212
+ url=self.url,
213
+ name=name,
214
+ scenario=self.scenario,
215
+ )
216
+ logging.info(f"Testrun ID is: {self._run_id}")
217
+ self._wait_until_testrun_end(timeout)
218
+ self.results = self._client.get_test_run_full_status(self._run_id)
219
+
220
+ def _wait_until_testrun_end(self, timeout: float):
221
+ """Wait until the test run reaches a final status.
222
+
223
+ Polls the run status every :data:`POLL_INTERVAL_SECONDS` seconds until it leaves the :data:`PENDING_STATUSES`.
224
+
225
+ :param timeout: Maximum time, in seconds, to wait for the run to finish.
226
+
227
+ :raises TimeoutError: If the run is still pending once ``timeout`` elapses.
228
+ """
229
+ deadline = time.monotonic() + timeout
230
+ while True:
231
+ status = self._client.get_test_run_status(self._run_id).get("status")
232
+ logging.debug(f"Current run status: {status}")
233
+ if status not in PENDING_STATUSES:
234
+ return
235
+ if time.monotonic() >= deadline:
236
+ msg = f"Lynqa test run {self._run_id} did not complete within {timeout}s"
237
+ raise TimeoutError(msg)
238
+ time.sleep(POLL_INTERVAL_SECONDS)
239
+
240
+ def _report_test_results(self, result):
241
+ """Report the test results from the Lynqa API.
242
+
243
+ Sets the test status to ``PASS`` when the run succeeded and ``FAIL`` otherwise, and copies the run's status
244
+ message onto the result.
245
+
246
+ :param result: Test result object provided by Robot Framework.
247
+ """
248
+ if self.results.get("status") == "success":
249
+ result.status = "PASS"
250
+ else:
251
+ result.status = "FAIL"
252
+
253
+ result.message = self.results.get("statusMessage")
254
+
255
+ # ------------------------------------------------------------------
256
+ # Keywords exposed to Robot Framework
257
+ # ------------------------------------------------------------------
258
+
259
+ def given(self, text: str) -> None:
260
+ """Create a ``Given`` step in the current scenario.
261
+
262
+ :param text: Natural-language description of the step.
263
+ """
264
+
265
+ def when(self, text: str) -> None:
266
+ """Create a ``When`` step in the current scenario.
267
+
268
+ :param text: Natural-language description of the step.
269
+ """
270
+
271
+ def then(self, text: str) -> None:
272
+ """Create a ``Then`` step in the current scenario.
273
+
274
+ :param text: Natural-language description of the step.
275
+ """
276
+
277
+ # ------------------------------------------------------------------
278
+ # Helpers
279
+ # ------------------------------------------------------------------
280
+
281
+ def _log_step_details(self) -> None:
282
+ """Log the commands and assertions of the current Gherkin step.
283
+
284
+ Logs two messages: a ``Commands:`` list with one ``- name: value`` bullet per command and an ``Assertions:``
285
+ list with one ``- assertion`` bullet per assertion. The step is the one matching the keyword at
286
+ :attr:`_step_index`.
287
+ """
288
+ steps = self.results.get("stepStatuses", [])
289
+ if self._step_index >= len(steps):
290
+ return
291
+ step = steps[self._step_index]
292
+
293
+ commands = step.get("commands") or []
294
+ command_lines = [
295
+ f"- {command.get('name')}: {command['value']}" if "value" in command else f"- {command.get('name')}"
296
+ for command in commands
297
+ ]
298
+ logging.info("\n".join(["Commands:", *command_lines]))
299
+
300
+ report = step.get("assertionsReport") or {}
301
+ assertions = report.get("assertions") or []
302
+ assertion_lines = [f"- {item['assertion']}" for item in assertions if "assertion" in item]
303
+ logging.info("\n".join(["Assertions:", *assertion_lines]))
304
+
305
+ @staticmethod
306
+ def _search_variable(variable_name) -> object:
307
+ """Return the value of a Robot Framework variable.
308
+
309
+ :param variable_name: Name of the variable to look up, e.g. ``${LYNQA_URL}``.
310
+
311
+ :returns: The variable's value, or ``None`` when it is not set.
312
+ """
313
+ return BuiltIn().get_variable_value(variable_name)
314
+
315
+ def _search_secrets_variables(self) -> list[TestData]:
316
+ """Convert the secrets variable into a list of :class:`TestData`.
317
+
318
+ The ``&{LYNQA_SECRETS}`` variable is expected to be a mapping of secret name to value, e.g. ``login=superu
319
+ password=TrèsS3cr3t``. Each entry is turned into a :class:`TestData` name/value pair.
320
+
321
+ :returns: The secrets as :class:`TestData` items, or an empty list if unset.
322
+
323
+ :raises TypeError: If the secrets variable is not a name/value mapping.
324
+ """
325
+ raw_secrets = self._search_variable(SECRETS_VAR)
326
+ if not raw_secrets:
327
+ return []
328
+ if not isinstance(raw_secrets, dict):
329
+ raise TypeError("Invalid secrets variable, expected a dict") # ruff: ignore[raise-vanilla-args]
330
+ return [TestData(name=str(name), value=str(value)) for name, value in raw_secrets.items()]
331
+
332
+ def _search_context(self) -> TestRunContext:
333
+ """Build the Lynqa run context from the ``LYNQA_*`` Robot Framework variables.
334
+
335
+ Reads the optional ``${LYNQA_LANGUAGE}`` and ``${LYNQA_DATETIME}`` variables and the ``&{LYNQA_SECRETS}``
336
+ mapping. When ``${LYNQA_DATETIME}`` is not set, the current local date and time is used.
337
+
338
+ :returns: The context passed to the Lynqa test run.
339
+ """
340
+ client_language = self._search_variable(LANGUAGE_VAR)
341
+ client_datetime = self._search_variable(DATETIME_VAR)
342
+ if client_datetime is None:
343
+ client_datetime = datetime.now().astimezone().strftime("%a %b %d %Y %H:%M:%S GMT%z")
344
+ secrets = self._search_secrets_variables()
345
+ return TestRunContext(
346
+ client_language=str(client_language), client_datetime=str(client_datetime), secrets=secrets
347
+ )
@@ -0,0 +1,28 @@
1
+ """Unit tests for robotframework_lynqa."""
2
+
3
+ from robot.api.interfaces import ListenerV3
4
+
5
+ # ruff: file-ignore[non-empty-init-module]
6
+ from robot.libraries.BuiltIn import BuiltIn
7
+
8
+ API_KEY = "fake_api_key"
9
+
10
+
11
+ class _CaptureLibInstance(ListenerV3):
12
+ """Listener that captures the live LynqaLibrary instance during the run.
13
+
14
+ The ``.robot`` file owns the :class:`LynqaLibrary` instance (it is created by the ``Library`` import), so the test
15
+ cannot reference it directly. This listener grabs that instance from the running context before the test ends.
16
+ """
17
+
18
+ def __init__(self) -> None:
19
+ """Initialize the capture listener."""
20
+ self.instance = None
21
+
22
+ def end_test(self, data, result) -> None:
23
+ """Capture the library instance while the execution context is alive.
24
+
25
+ :param data: Running test data passed by Robot Framework.
26
+ :param result: Test result object passed by Robot Framework.
27
+ """
28
+ self.instance = BuiltIn().get_library_instance("robotframework_lynqa.LynqaLibrary")
@@ -0,0 +1,11 @@
1
+ """Pytest configuration for tests."""
2
+
3
+ from pylynqa.models import TestData, TestRunContext
4
+
5
+
6
+ def pytest_configure(config):
7
+ """Pytest configuration tests."""
8
+ # Prevent pytest from collecting these model classes as test suites
9
+ # (their names start with "Test" but they are domain objects, not test cases).
10
+ TestData.__test__ = False # ty: ignore[unresolved-attribute]
11
+ TestRunContext.__test__ = False # ty: ignore[unresolved-attribute]
@@ -0,0 +1,17 @@
1
+ *** Settings ***
2
+ Library robotframework_lynqa.LynqaLibrary api_key=%{API_KEY}
3
+
4
+
5
+ *** Variables ***
6
+ ${LYNQA_URL} https://www.super-u.ai
7
+ ${LYNQA_LANGUAGE} rf-RF
8
+ &{LYNQA_SECRETS} login=superu password=TrèsS3cr3t
9
+
10
+
11
+ *** Test Cases ***
12
+ Browsing And Buying An AI Agent
13
+ Given the storefront is open at the home page
14
+ When the user searches for an autonomous testing agent
15
+ When the user filters the results to top-rated agents under 50 credits
16
+ Then a list of matching AI agents is displayed with their prices
17
+ Then the premium "Bobcat" agent is sold out because its success
@@ -0,0 +1,17 @@
1
+ *** Settings ***
2
+ Library DateTime
3
+ Library robotframework_lynqa.LynqaLibrary api_key=%{API_KEY}
4
+
5
+
6
+ *** Variables ***
7
+ ${LYNQA_URL} https://www.super-u.ai
8
+ ${LYNQA_LANGUAGE} rf-RF
9
+ ${LYNQA_DATETIME} Wed May 8 2026 09:00:00 GMT+0200
10
+ &{LYNQA_SECRETS} login=superu password=TrèsS3cr3t
11
+
12
+
13
+ *** Test Cases ***
14
+ Browsing And Buying An AI Agent With Date
15
+ Given the storefront is open at the home page
16
+ When the user searches for an autonomous testing agent
17
+ Then a list of matching AI agents is displayed with their prices
@@ -0,0 +1,15 @@
1
+ *** Settings ***
2
+ Library robotframework_lynqa.LynqaLibrary api_key=%{API_KEY}
3
+
4
+
5
+ *** Variables ***
6
+ ${LYNQA_URL} https://www.google.com/
7
+
8
+
9
+ *** Test Cases ***
10
+ Search Engine
11
+ Given go to the website
12
+ When I look at the search input
13
+ Then the search input exists
14
+ When I search for 'lynqa'
15
+ Then several results are displayed and the first results display 'Smartesting'
@@ -0,0 +1,16 @@
1
+ *** Settings ***
2
+ Library DateTime
3
+ Library robotframework_lynqa.LynqaLibrary api_key=%{API_KEY}
4
+
5
+
6
+ *** Variables ***
7
+ ${LYNQA_LANGUAGE} rf-RF
8
+ ${LYNQA_DATETIME} Wed May 8 2026 09:00:00 GMT+0200
9
+ &{LYNQA_SECRETS} login=superu password=TrèsS3cr3t
10
+
11
+
12
+ *** Test Cases ***
13
+ Browsing And Buying An AI Agent Without URL
14
+ Given the storefront is open at the home page
15
+ When the user searches for an autonomous testing agent
16
+ Then a list of matching AI agents is displayed with their prices
@@ -0,0 +1,129 @@
1
+ """Dataset: Test run full status response."""
2
+
3
+ TEST_RUN_FULL_STATUS_SUCCESS_RESPONSE = {
4
+ "createdAt": "2026-06-12T13:58:24.944Z",
5
+ "start": "2026-06-12T13:58:28.693Z",
6
+ "end": "2026-06-12T14:00:36.029Z",
7
+ "status": "success",
8
+ "statusMessage": "OK",
9
+ "stepStatuses": [
10
+ {
11
+ "end": "2026-06-12T13:59:07.365Z",
12
+ "start": "2026-06-12T13:58:53.483Z",
13
+ "status": "success",
14
+ "commands": [
15
+ {
16
+ "name": "scroll",
17
+ "response": {"success": {"delta": 500, "direction": "down"}},
18
+ "screenshot": "3f85e362-d50e-4521-8447-27427110cf5f",
19
+ },
20
+ {
21
+ "name": "click",
22
+ "button": "left",
23
+ "response": {"success": {"newUrl": None}},
24
+ "screenshot": "4e63b6a6-b337-4642-a872-91f20a4ab919",
25
+ "htmlElement": '"Tout refuser button"',
26
+ },
27
+ ],
28
+ "assertionsReport": {
29
+ "assertions": [
30
+ {"checked": True, "assertion": "The browser is navigated to https://www.google.com/"},
31
+ {"checked": True, "assertion": "The Google homepage is fully loaded with the search input visible"},
32
+ {"checked": True, "assertion": "The cookie consent popup is dismissed"},
33
+ ],
34
+ "screenshot": "1be40c8c-dbb2-466e-ab1b-a5155a531fc4",
35
+ },
36
+ },
37
+ {
38
+ "end": "2026-06-12T13:59:28.493Z",
39
+ "start": "2026-06-12T13:59:28.493Z",
40
+ "status": "success",
41
+ "commands": [],
42
+ "assertionsReport": {
43
+ "assertions": [
44
+ {"checked": True, "assertion": "The browser is navigated to https://www.google.com/"},
45
+ {
46
+ "checked": True,
47
+ "assertion": "The cookie consent popup is dismissed and the Google homepage is fully accessible", # ruff: ignore[line-too-long]
48
+ },
49
+ {"checked": True, "assertion": "The search input is visible and accessible on the Google homepage"},
50
+ ],
51
+ "screenshot": "cce0c8f8-e96a-48f2-8b35-ffd41ec979dd",
52
+ },
53
+ },
54
+ {
55
+ "end": "2026-06-12T13:59:40.504Z",
56
+ "start": "2026-06-12T13:59:40.504Z",
57
+ "status": "success",
58
+ "commands": [],
59
+ "assertionsReport": {
60
+ "assertions": [
61
+ {"checked": True, "assertion": "The search input exists and is visible on the Google homepage"}
62
+ ],
63
+ "screenshot": "296ad2a5-4cea-44a8-8af6-fbf62ce1aeaf",
64
+ },
65
+ },
66
+ {
67
+ "end": "2026-06-12T14:00:16.258Z",
68
+ "start": "2026-06-12T14:00:00.401Z",
69
+ "status": "success",
70
+ "commands": [
71
+ {
72
+ "name": "click",
73
+ "button": "left",
74
+ "response": {"success": {"newUrl": None}},
75
+ "screenshot": "62a28ce4-f106-4b70-94f7-ea640d55fcdc",
76
+ "htmlElement": "Search input field",
77
+ },
78
+ {
79
+ "name": "type",
80
+ "value": "lynqa",
81
+ "response": {"success": True},
82
+ "screenshot": "caeaa3c5-e37d-4460-a1ed-c53d81406617",
83
+ },
84
+ {
85
+ "name": "pressKey",
86
+ "value": "Return",
87
+ "response": {
88
+ "success": {
89
+ "newUrl": "https://www.google.com/search?q=lynqa&sca_esv=2aa300c80f7be1f4&source=hp&ei=gxAsaqTHMqq4kdUP1ciGmAY&iflsig=AFdpzrgAAAAAaiwek3wNXsJiALMoqmxWYThTRkSuPVDQ&ved=0ahUKEwjklP737YGVAxUqXKQEHVWkAWMQ4dUDCCE&uact=5&oq=lynqa&gs_lp=Egdnd3Mtd2l6IgVseW5xYTIMEC4YgAQYChgLGLEDMg8QLhiABBgKGAsYsQMYgwEyDBAuGAoYCxixAxiABDIMEC4YChgLGLEDGIAEMgkQLhiABBgKGAsyCRAuGIAEGAoYCzIJEAAYgAQYChgLMgkQABiABBgKGAsyCRAuGIAEGAoYCzIJEC4YgAQYChgLSJtnUMRAWJlBcAF4AJABAJgBM6AB1gGqAQE1uAEDyAEA-AEBmAIGoAKIAqgCCsICChAuGAMYjwEY6gLCAgoQABgDGI8BGOoCwgILEAAYgAQYsQMYgwHCAggQABiABBixA8ICCBAuGIAEGLEDwgIREC4YgAQYsQMYgwEYxwEY0QPCAg4QLhiABBixAxjHARjRA8ICBRAuGIAEwgIOEC4YgAQYigUYsQMYgwHCAg4QABiABBiKBRixAxiDAcICBhAAGAMYCsICBBAAGAPCAgUQABiABMICBxAAGIAEGAqYAw3xBaK8RTujFJwPkgcBNqAH50ayBwE1uAf7AcIHBTItNC4yyAcogAgB&sclient=gws-wiz&sei=3hAsauOqNoqbkdUP-YX-qAw"
90
+ }
91
+ },
92
+ "screenshot": "d7a51561-7ac9-4a55-bdf6-b809c5287a69",
93
+ "keysSequence": ["Return"],
94
+ },
95
+ ],
96
+ "assertionsReport": {
97
+ "assertions": [
98
+ {"checked": True, "assertion": "Search for 'lynqa' is executed and results page is displayed"},
99
+ {"checked": True, "assertion": "Search results include 'Smartesting' in the first results"},
100
+ ],
101
+ "screenshot": "3b78845d-41e8-43ba-abe2-b006e8735be2",
102
+ },
103
+ },
104
+ {
105
+ "end": "2026-06-12T14:00:35.981Z",
106
+ "start": "2026-06-12T14:00:35.981Z",
107
+ "status": "success",
108
+ "commands": [],
109
+ "assertionsReport": {
110
+ "assertions": [
111
+ {"checked": True, "assertion": "The search query 'lynqa' is entered and results are displayed"},
112
+ {"checked": True, "assertion": "Several search results are displayed for the query 'lynqa'"},
113
+ {"checked": True, "assertion": "The first result displays 'Smartesting' as the source"},
114
+ {"checked": True, "assertion": "The first results (plural) display 'Smartesting'"},
115
+ ],
116
+ "screenshot": "d9b611e0-955d-4b69-a51b-58ed40d88fb3",
117
+ },
118
+ },
119
+ ],
120
+ "initialReport": {"screenshot": "b276c303-d612-4c25-a2cd-18d42b8b4930", "architecture": "omeron"},
121
+ "type": "gherkin",
122
+ "steps": [
123
+ {"keyword": "Given", "text": "go to the website"},
124
+ {"keyword": "When", "text": "I look at the search input"},
125
+ {"keyword": "Then", "text": "the search input exists"},
126
+ {"keyword": "When", "text": "I search for 'lynqa'"},
127
+ {"keyword": "Then", "text": "several results are displayed and the first results display 'Smartesting'"},
128
+ ],
129
+ }
@@ -0,0 +1,129 @@
1
+ """Dataset: Test run full status response."""
2
+
3
+ TEST_RUN_FULL_STATUS_FAILURE_RESPONSE = {
4
+ "createdAt": "2026-06-12T13:58:24.944Z",
5
+ "start": "2026-06-12T13:58:28.693Z",
6
+ "end": "2026-06-12T14:00:36.029Z",
7
+ "status": "failed",
8
+ "statusMessage": "KO",
9
+ "stepStatuses": [
10
+ {
11
+ "end": "2026-06-12T13:59:07.365Z",
12
+ "start": "2026-06-12T13:58:53.483Z",
13
+ "status": "success",
14
+ "commands": [
15
+ {
16
+ "name": "scroll",
17
+ "response": {"success": {"delta": 500, "direction": "down"}},
18
+ "screenshot": "3f85e362-d50e-4521-8447-27427110cf5f",
19
+ },
20
+ {
21
+ "name": "click",
22
+ "button": "left",
23
+ "response": {"success": {"newUrl": None}},
24
+ "screenshot": "4e63b6a6-b337-4642-a872-91f20a4ab919",
25
+ "htmlElement": '"Tout refuser button"',
26
+ },
27
+ ],
28
+ "assertionsReport": {
29
+ "assertions": [
30
+ {"checked": True, "assertion": "The browser is navigated to https://www.google.com/"},
31
+ {"checked": True, "assertion": "The Google homepage is fully loaded with the search input visible"},
32
+ {"checked": True, "assertion": "The cookie consent popup is dismissed"},
33
+ ],
34
+ "screenshot": "1be40c8c-dbb2-466e-ab1b-a5155a531fc4",
35
+ },
36
+ },
37
+ {
38
+ "end": "2026-06-12T13:59:28.493Z",
39
+ "start": "2026-06-12T13:59:28.493Z",
40
+ "status": "success",
41
+ "commands": [],
42
+ "assertionsReport": {
43
+ "assertions": [
44
+ {"checked": True, "assertion": "The browser is navigated to https://www.google.com/"},
45
+ {
46
+ "checked": True,
47
+ "assertion": "The cookie consent popup is dismissed and the Google homepage is fully accessible", # ruff: ignore[line-too-long]
48
+ },
49
+ {"checked": True, "assertion": "The search input is visible and accessible on the Google homepage"},
50
+ ],
51
+ "screenshot": "cce0c8f8-e96a-48f2-8b35-ffd41ec979dd",
52
+ },
53
+ },
54
+ {
55
+ "end": "2026-06-12T13:59:40.504Z",
56
+ "start": "2026-06-12T13:59:40.504Z",
57
+ "status": "failed",
58
+ "commands": [],
59
+ "assertionsReport": {
60
+ "assertions": [
61
+ {"checked": True, "assertion": "The search input exists and is visible on the Google homepage"}
62
+ ],
63
+ "screenshot": "296ad2a5-4cea-44a8-8af6-fbf62ce1aeaf",
64
+ },
65
+ },
66
+ {
67
+ "end": "2026-06-12T14:00:16.258Z",
68
+ "start": "2026-06-12T14:00:00.401Z",
69
+ "status": "success",
70
+ "commands": [
71
+ {
72
+ "name": "click",
73
+ "button": "left",
74
+ "response": {"success": {"newUrl": None}},
75
+ "screenshot": "62a28ce4-f106-4b70-94f7-ea640d55fcdc",
76
+ "htmlElement": "Search input field",
77
+ },
78
+ {
79
+ "name": "type",
80
+ "value": "lynqa",
81
+ "response": {"success": True},
82
+ "screenshot": "caeaa3c5-e37d-4460-a1ed-c53d81406617",
83
+ },
84
+ {
85
+ "name": "pressKey",
86
+ "value": "Return",
87
+ "response": {
88
+ "success": {
89
+ "newUrl": "https://www.google.com/search?q=lynqa&sca_esv=2aa300c80f7be1f4&source=hp&ei=gxAsaqTHMqq4kdUP1ciGmAY&iflsig=AFdpzrgAAAAAaiwek3wNXsJiALMoqmxWYThTRkSuPVDQ&ved=0ahUKEwjklP737YGVAxUqXKQEHVWkAWMQ4dUDCCE&uact=5&oq=lynqa&gs_lp=Egdnd3Mtd2l6IgVseW5xYTIMEC4YgAQYChgLGLEDMg8QLhiABBgKGAsYsQMYgwEyDBAuGAoYCxixAxiABDIMEC4YChgLGLEDGIAEMgkQLhiABBgKGAsyCRAuGIAEGAoYCzIJEAAYgAQYChgLMgkQABiABBgKGAsyCRAuGIAEGAoYCzIJEC4YgAQYChgLSJtnUMRAWJlBcAF4AJABAJgBM6AB1gGqAQE1uAEDyAEA-AEBmAIGoAKIAqgCCsICChAuGAMYjwEY6gLCAgoQABgDGI8BGOoCwgILEAAYgAQYsQMYgwHCAggQABiABBixA8ICCBAuGIAEGLEDwgIREC4YgAQYsQMYgwEYxwEY0QPCAg4QLhiABBixAxjHARjRA8ICBRAuGIAEwgIOEC4YgAQYigUYsQMYgwHCAg4QABiABBiKBRixAxiDAcICBhAAGAMYCsICBBAAGAPCAgUQABiABMICBxAAGIAEGAqYAw3xBaK8RTujFJwPkgcBNqAH50ayBwE1uAf7AcIHBTItNC4yyAcogAgB&sclient=gws-wiz&sei=3hAsauOqNoqbkdUP-YX-qAw"
90
+ }
91
+ },
92
+ "screenshot": "d7a51561-7ac9-4a55-bdf6-b809c5287a69",
93
+ "keysSequence": ["Return"],
94
+ },
95
+ ],
96
+ "assertionsReport": {
97
+ "assertions": [
98
+ {"checked": True, "assertion": "Search for 'lynqa' is executed and results page is displayed"},
99
+ {"checked": True, "assertion": "Search results include 'Smartesting' in the first results"},
100
+ ],
101
+ "screenshot": "3b78845d-41e8-43ba-abe2-b006e8735be2",
102
+ },
103
+ },
104
+ {
105
+ "end": "2026-06-12T14:00:35.981Z",
106
+ "start": "2026-06-12T14:00:35.981Z",
107
+ "status": "error",
108
+ "commands": [],
109
+ "assertionsReport": {
110
+ "assertions": [
111
+ {"checked": True, "assertion": "The search query 'lynqa' is entered and results are displayed"},
112
+ {"checked": True, "assertion": "Several search results are displayed for the query 'lynqa'"},
113
+ {"checked": True, "assertion": "The first result displays 'Smartesting' as the source"},
114
+ {"checked": True, "assertion": "The first results (plural) display 'Smartesting'"},
115
+ ],
116
+ "screenshot": "d9b611e0-955d-4b69-a51b-58ed40d88fb3",
117
+ },
118
+ },
119
+ ],
120
+ "initialReport": {"screenshot": "b276c303-d612-4c25-a2cd-18d42b8b4930", "architecture": "omeron"},
121
+ "type": "gherkin",
122
+ "steps": [
123
+ {"keyword": "Given", "text": "go to the website"},
124
+ {"keyword": "When", "text": "I look at the search input"},
125
+ {"keyword": "Then", "text": "the search input exists"},
126
+ {"keyword": "When", "text": "I search for 'lynqa'"},
127
+ {"keyword": "Then", "text": "several results are displayed and the first results display 'Smartesting'"},
128
+ ],
129
+ }
@@ -0,0 +1,196 @@
1
+ """Unit tests for robotframework_lynqa."""
2
+
3
+ from datetime import datetime, timedelta, timezone
4
+ from pathlib import Path
5
+
6
+ import pytest
7
+ import robot
8
+ from pylynqa import TestData, TestRunContext
9
+ from robot.result import ExecutionResult, Keyword
10
+
11
+ from robotframework_lynqa.library import LynqaLibrary
12
+ from robotframework_lynqa.test import API_KEY, _CaptureLibInstance
13
+ from robotframework_lynqa.test.data_set.testrun_full_status import TEST_RUN_FULL_STATUS_SUCCESS_RESPONSE
14
+ from robotframework_lynqa.test.data_set.testrun_full_status_failure import TEST_RUN_FULL_STATUS_FAILURE_RESPONSE
15
+
16
+ DATA_SET_FOLDER = Path(__file__).parent / "data_set"
17
+ TEST_LYNQA_ROBOT_FILE = DATA_SET_FOLDER / "test_lynqa_nominal.robot"
18
+ TEST_LYNQA_WITH_DATE_ROBOT_FILE = DATA_SET_FOLDER / "test_lynqa_with_date.robot"
19
+ TEST_LYNQA_WITHOUT_URL_ROBOT_FILE = DATA_SET_FOLDER / "test_lynqa_without_url.robot"
20
+ TEST_LYNQA_WITH_RESULTS_ROBOT_FILE = DATA_SET_FOLDER / "test_lynqa_with_results.robot"
21
+
22
+ EXPECTED_SCENARIO = (
23
+ "Given the storefront is open at the home page\n"
24
+ "When the user searches for an autonomous testing agent\n"
25
+ "When the user filters the results to top-rated agents under 50 credits\n"
26
+ "Then a list of matching AI agents is displayed with their prices\n"
27
+ 'Then the premium "Bobcat" agent is sold out because its success'
28
+ )
29
+
30
+
31
+ @pytest.fixture
32
+ def client(mocker):
33
+ """Mock the Lynqa HTTP client so no real request is sent.
34
+
35
+ Patches :class:`LynqaClient` in the library module: every ``LynqaLibrary`` created during the run gets this mock as
36
+ its ``_client``. The run is reported as an immediately successful one.
37
+
38
+ :returns: The mock client instance shared by every ``LynqaLibrary``.
39
+ """
40
+ client = mocker.patch("robotframework_lynqa.library.LynqaClient").return_value
41
+ client.add_gherkin_test_run.return_value = 123456
42
+ client.get_test_run_status.return_value = {"status": "success"}
43
+ client.get_test_run_full_status.return_value = {"status": "success", "statusMessage": "OK"}
44
+ return client
45
+
46
+
47
+ @pytest.fixture
48
+ def listener_probe(monkeypatch, mocker, client):
49
+ """Initialize the listener probe used to capture the library instance."""
50
+ monkeypatch.setenv("API_KEY", API_KEY)
51
+ mock_datetime = mocker.patch("robotframework_lynqa.library.datetime")
52
+ fixed_now = datetime(2026, 6, 24, 9, 52, 0, tzinfo=timezone(timedelta(hours=2)))
53
+ mock_datetime.now.return_value.astimezone.return_value = fixed_now
54
+ return _CaptureLibInstance()
55
+
56
+
57
+ @pytest.fixture
58
+ def library(client):
59
+ """Build a ``LynqaLibrary`` instance wired to the mocked client for unit tests.
60
+
61
+ :returns: A library whose ``_client`` is the shared mock from ``client``.
62
+ """
63
+ return LynqaLibrary(api_key=API_KEY)
64
+
65
+
66
+ def test_nominal_scenario(tmp_path, listener_probe):
67
+ """Test that the scenario is executed."""
68
+ # Act
69
+ rc = robot.run(str(TEST_LYNQA_ROBOT_FILE), outputdir=str(tmp_path), listener=listener_probe)
70
+
71
+ # Assert
72
+ listener_inst = listener_probe.instance
73
+ assert rc == 0
74
+ assert listener_inst is not None
75
+ assert listener_inst.scenario == EXPECTED_SCENARIO
76
+ assert listener_inst.url == "https://www.super-u.ai"
77
+ assert listener_inst.context == TestRunContext(
78
+ client_language="rf-RF",
79
+ client_datetime="Wed Jun 24 2026 09:52:00 GMT+0200",
80
+ secrets=[TestData(name="login", value="superu"), TestData(name="password", value="TrèsS3cr3t")],
81
+ )
82
+
83
+
84
+ def test_variable_with_date(tmp_path, listener_probe):
85
+ """Test that the scenario is executed with a provided date."""
86
+ # Act
87
+ rc = robot.run(str(TEST_LYNQA_WITH_DATE_ROBOT_FILE), outputdir=str(tmp_path), listener=listener_probe)
88
+
89
+ # Assert
90
+ listener_inst = listener_probe.instance
91
+ assert rc == 0
92
+ assert listener_inst.context == TestRunContext(
93
+ client_language="rf-RF",
94
+ client_datetime="Wed May 8 2026 09:00:00 GMT+0200",
95
+ secrets=[TestData(name="login", value="superu"), TestData(name="password", value="TrèsS3cr3t")],
96
+ )
97
+
98
+
99
+ def test_variable_without_url(tmp_path, listener_probe):
100
+ """Test that the execution fails if URL is missing."""
101
+ # Act
102
+ rc = robot.run(str(TEST_LYNQA_WITHOUT_URL_ROBOT_FILE), outputdir=str(tmp_path), listener=listener_probe)
103
+
104
+ # Assert
105
+ assert rc > 0
106
+
107
+
108
+ def test_scenario_result(tmp_path, listener_probe, client):
109
+ """Test that the scenario result is returned."""
110
+ # Arrange
111
+ client.get_test_run_full_status.return_value = TEST_RUN_FULL_STATUS_SUCCESS_RESPONSE
112
+ # Act
113
+ rc = robot.run(str(TEST_LYNQA_WITH_RESULTS_ROBOT_FILE), outputdir=str(tmp_path), listener=listener_probe)
114
+
115
+ # Assert
116
+ assert rc == 0
117
+ robot_result = ExecutionResult(str(tmp_path / "output.xml"))
118
+ # Assert Test status
119
+ test = robot_result.suite.tests[0]
120
+ assert test.status == "PASS"
121
+ assert test.message == "OK"
122
+ # Assert Keywords status
123
+ keywords = [elt for elt in test.body if isinstance(elt, Keyword)]
124
+ for keyword in keywords:
125
+ assert keyword.status == "PASS"
126
+ assert len(keywords[0].messages) > 1
127
+
128
+
129
+ def test_scenario_result_failure(tmp_path, listener_probe, client):
130
+ """Test that the scenario result is failed."""
131
+ # Arrange
132
+ client.get_test_run_full_status.return_value = TEST_RUN_FULL_STATUS_FAILURE_RESPONSE
133
+
134
+ # Act
135
+ rc = robot.run(str(TEST_LYNQA_WITH_RESULTS_ROBOT_FILE), outputdir=str(tmp_path), listener=listener_probe)
136
+
137
+ # Assert
138
+ assert rc > 0
139
+ robot_result = ExecutionResult(str(tmp_path / "output.xml"))
140
+ # Assert Test status
141
+ test = robot_result.suite.tests[0]
142
+ assert test.status == "FAIL"
143
+ assert test.message == "KO"
144
+ # Assert Keywords status
145
+ keywords = [elt for elt in test.body if isinstance(elt, Keyword)]
146
+ keywords_status = [keyword.status for keyword in keywords]
147
+ assert keywords_status == ["PASS", "PASS", "FAIL", "PASS", "FAIL"]
148
+ assert len(keywords[0].messages) > 1
149
+
150
+
151
+ def test_wait_until_testrun_end_polls_until_complete(library, client, mocker):
152
+ """Polling continues while the run is pending, then stops on a final status."""
153
+ # Arrange
154
+ mocker.patch("robotframework_lynqa.library.time.sleep")
155
+ statuses = [
156
+ {"status": "running"},
157
+ {"status": "running"},
158
+ {"status": "success"},
159
+ ]
160
+ client.get_test_run_status.side_effect = statuses
161
+
162
+ # Act
163
+ library._wait_until_testrun_end(timeout=100)
164
+
165
+ # Assert
166
+ assert client.get_test_run_status.call_count == len(statuses)
167
+
168
+
169
+ def test_wait_until_testrun_end_raises_on_timeout(library, client, mocker):
170
+ """A run that never leaves a pending status raises ``TimeoutError``."""
171
+ # Arrange
172
+ mocker.patch("robotframework_lynqa.library.time.sleep")
173
+ client.get_test_run_status.return_value = {"status": "running"}
174
+
175
+ # Act / Assert
176
+ with pytest.raises(TimeoutError):
177
+ library._wait_until_testrun_end(timeout=-1)
178
+
179
+
180
+ def test_search_secrets_variables_unset(library, mocker):
181
+ """An unset secrets variable yields an empty list."""
182
+ # Arrange
183
+ mocker.patch.object(library, "_search_variable", return_value=None)
184
+
185
+ # Act / Assert
186
+ assert library._search_secrets_variables() == []
187
+
188
+
189
+ def test_search_secrets_variables_invalid_type(library, mocker):
190
+ """A non-mapping secrets variable raises ``TypeError``."""
191
+ # Arrange
192
+ mocker.patch.object(library, "_search_variable", return_value="not-a-dict")
193
+
194
+ # Act / Assert
195
+ with pytest.raises(TypeError):
196
+ library._search_secrets_variables()
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.4
2
+ Name: robotframework-lynqa
3
+ Version: 0.1.0a1
4
+ Summary: Robot Framework library for the Lynqa test execution agent
5
+ Author-email: Alexis Pallier <alexis.pallier@petit-robot.bzh>
6
+ License-Expression: Apache-2.0
7
+ Requires-Python: >=3.9
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: pylynqa
11
+ Requires-Dist: robotframework>=7
12
+ Provides-Extra: dev
13
+ Requires-Dist: pytest>=7; extra == "dev"
14
+ Requires-Dist: pytest-mock>=3; extra == "dev"
15
+ Requires-Dist: pytest-cov>=5; extra == "dev"
16
+ Requires-Dist: ruff>=0.15; extra == "dev"
17
+ Requires-Dist: ty>=0.0; extra == "dev"
18
+ Requires-Dist: coverage>=7.10; extra == "dev"
19
+ Requires-Dist: robotframework-robocop>=6; extra == "dev"
20
+ Requires-Dist: docstrfmt>=1.11; extra == "dev"
21
+ Requires-Dist: sphinx-lint>=0.9; extra == "dev"
22
+ Dynamic: license-file
23
+
24
+ # robotframework-lynqa
25
+
26
+ [![CI](https://github.com/petit-robot/robotframework-lynqa/actions/workflows/ci.yml/badge.svg)](https://github.com/petit-robot/robotframework-lynqa/actions/workflows/ci.yml)
27
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
28
+ ![Python](https://img.shields.io/badge/python-3.9%2B-blue.svg)
29
+
30
+ **robotframework-lynqa** is a [Robot Framework](https://robotframework.org) library for the
31
+ [Lynqa](https://lynqa.smartesting.com) test execution AI Agent.
32
+
33
+ ![Robot Framework/Lynqa connector](docs/robotframework-lynqa.png)
34
+
35
+ Write your scenarios in plain Gherkin and have them executed by Lynqa against your web application, instead of by locally
36
+ defined keywords. It builds on [pylynqa](https://github.com/petit-robot/pylynqa), the Python client for the Lynqa REST
37
+ API.
38
+
39
+ ## Disclaimers
40
+
41
+ > [!IMPORTANT]
42
+ > **This is an unofficial project.** robotframework-lynqa is **not affiliated with, endorsed by, or maintained by
43
+ > [Smartesting](https://www.smartesting.com)**, the company that develops Lynqa. "Lynqa" and "Smartesting" are the
44
+ > property of their respective owners.
45
+
46
+ > [!NOTE]
47
+ > **Lynqa is a commercial product.** Using this library requires a Lynqa account and an API key, and running tests
48
+ > consumes paid credits. See <https://my.lynqa.smartesting.com/integration> to create an API key.
49
+
50
+ ## Requirements
51
+
52
+ - Python 3.9+
53
+ - Robot Framework 7+
54
+ - A Lynqa account and API key (test executions consume credits)
55
+
56
+ ## Installation
57
+
58
+ ```bash
59
+ pip install robotframework-lynqa
60
+ ```
61
+
62
+ > At this early stage the package may not be published on PyPI yet. In the meantime you can install it from source:
63
+ >
64
+ > ```bash
65
+ > pip install git+https://github.com/petit-robot/robotframework-lynqa.git
66
+ > ```
67
+
68
+ ## Quick start
69
+
70
+ Import the library and write your test cases with the `Given`/`When`/`Then` keywords, each taking a single
71
+ natural-language step:
72
+
73
+ ```robotframework
74
+ *** Settings ***
75
+ Library robotframework_lynqa.LynqaLibrary api_key=%{API_KEY}
76
+
77
+ *** Variables ***
78
+ ${LYNQA_URL} https://example.com/
79
+
80
+ *** Test Cases ***
81
+ Search For An Item
82
+ Given the home page is open
83
+ When the user searches for an item
84
+ Then matching results are displayed
85
+ ```
86
+
87
+ The scenario is captured and submitted to Lynqa, which runs it against the site at `${LYNQA_URL}` and reports each step's
88
+ result back to Robot Framework.
89
+
90
+ ### Configuration variables
91
+
92
+ | Variable | Required | Description |
93
+ | ------------------- | -------- |-----------------------------------------------------------------------------|
94
+ | `${LYNQA_URL}` | Yes | URL of the web application under test. |
95
+ | `${LYNQA_LANGUAGE}` | No | Language of the user running the scenario. |
96
+ | `${LYNQA_DATETIME}` | No | Date and time of the run (defaults to the current local date and time). |
97
+ | `&{LYNQA_SECRETS}` | No | Mapping of secret name to value (e.g. `login=superu password=TrèsS3cr3t`). |
98
+
99
+ ## Collaboration
100
+
101
+ This project is at an early stage, so **external contributions are limited for now**. This may be opened up more broadly
102
+ later as the project matures.
103
+
104
+ In the meantime, **you are very welcome to open an
105
+ [issue](https://github.com/petit-robot/robotframework-lynqa/issues)** to report a bug or ask any question.
106
+
107
+ ## License
108
+
109
+ Licensed under the [Apache License 2.0](LICENSE).
@@ -0,0 +1,18 @@
1
+ robotframework_lynqa/__init__.py,sha256=cfyw4h9FAPx6XZqEbBiNIFykosoLjyKQE-O-E7beANg,166
2
+ robotframework_lynqa/library.py,sha256=8o-L5YvQ9v6aBcJikBpRVtbMbZMYWNU45SVOvHNtO6Q,14315
3
+ robotframework_lynqa/test/__init__.py,sha256=PKTiZ9hxApp32cXzuhG1kWKEuR2oNJJFowiTe2ohWkg,1037
4
+ robotframework_lynqa/test/conftest.py,sha256=JIUi3FuiJWEo4nQrZI4NGQKb1iJrjivbegYvJF200MQ,454
5
+ robotframework_lynqa/test/test_library.py,sha256=XjVOlr50Mnr6zEwQkH9DiHRMgB3zXsjRMsFdL-PJiws,7432
6
+ robotframework_lynqa/test/data_set/test_lynqa_nominal.robot,sha256=oSHk73Ev12YxXqaxHAnqb0npMtaJXJ-AQRFer26d-fE,632
7
+ robotframework_lynqa/test/data_set/test_lynqa_with_date.robot,sha256=swsa3ULq-2k6J-7KlH_bAzbKJDar6V_Xl-S4gNvqNRE,571
8
+ robotframework_lynqa/test/data_set/test_lynqa_with_results.robot,sha256=8QzCoI_Y8WeFKOzbd3e6a9jxmZZEHGgjeXAg6O1XN6w,405
9
+ robotframework_lynqa/test/data_set/test_lynqa_without_url.robot,sha256=DwBiYLg0E9QWj-zczWEnAySpCm27pZR13wfe0zEntFQ,526
10
+ robotframework_lynqa/test/data_set/testrun_full_status.py,sha256=nynK-Vtg8te_1N-s9nt7vg2AAQaH_NrSJWXsRwJ-a7E,6437
11
+ robotframework_lynqa/test/data_set/testrun_full_status_failure.py,sha256=UEODTYIodXNI3qf9Z4G75fOePz7gnyDkqz5tOxjMheA,6433
12
+ robotframework_lynqa-0.1.0a1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
+ robotframework_lynqa-0.1.0a1.dist-info/METADATA,sha256=l8XgCmtNzzsLmEgJNRheNdcAXDV-KgLmbDQSWh2vAPY,4275
14
+ robotframework_lynqa-0.1.0a1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
15
+ robotframework_lynqa-0.1.0a1.dist-info/scm_file_list.json,sha256=P9t_SgcJpdqVTk7djryjm2TE12Vb_1Yk__mzCWNJGdI,950
16
+ robotframework_lynqa-0.1.0a1.dist-info/scm_version.json,sha256=35IrFeMyECXC87llAORaU1Si6UK1y58GwuFgm74sYdI,162
17
+ robotframework_lynqa-0.1.0a1.dist-info/top_level.txt,sha256=9wtppVSjlZ9nniUMeFezx6h1SKSk9YCvrzFQmAdpoXE,21
18
+ robotframework_lynqa-0.1.0a1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,25 @@
1
+ {
2
+ "files": [
3
+ "README.md",
4
+ ".aiignore",
5
+ "Makefile",
6
+ "LICENSE",
7
+ "pyproject.toml",
8
+ ".gitignore",
9
+ "docs/robotframework-lynqa.png",
10
+ "src/robotframework_lynqa/__init__.py",
11
+ "src/robotframework_lynqa/library.py",
12
+ "src/robotframework_lynqa/test/__init__.py",
13
+ "src/robotframework_lynqa/test/test_library.py",
14
+ "src/robotframework_lynqa/test/conftest.py",
15
+ "src/robotframework_lynqa/test/data_set/test_lynqa_nominal.robot",
16
+ "src/robotframework_lynqa/test/data_set/testrun_full_status.py",
17
+ "src/robotframework_lynqa/test/data_set/test_lynqa_without_url.robot",
18
+ "src/robotframework_lynqa/test/data_set/test_lynqa_with_results.robot",
19
+ "src/robotframework_lynqa/test/data_set/test_lynqa_with_date.robot",
20
+ "src/robotframework_lynqa/test/data_set/testrun_full_status_failure.py",
21
+ ".github/workflows/acceptance.yml",
22
+ ".github/workflows/release.yml",
23
+ ".github/workflows/ci.yml"
24
+ ]
25
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.1.0a1",
3
+ "distance": 0,
4
+ "node": "gb5714d08075b27438e46e7655a12b16373e54fba",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-06-26"
8
+ }
@@ -0,0 +1 @@
1
+ robotframework_lynqa