Skip to content

Commit

Permalink
Deploying to gh-pages from @ 54fa5ac 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Snooz82 committed Dec 7, 2024
1 parent 2ca731a commit 3ceaa70
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Robot Framework</title><meta name="description" content="Generic open source automation framework for acceptance testing, acceptance test driven development (ATDD), and robotic process automation (RPA)."><meta name="theme-color" content="#000000"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><script defer="defer" data-domain="robotframework.org" src="https://plausible.io/js/plausible.outbound-links.js"></script><script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script><script defer="defer" src="/scripts/gh-pages-spa.js"></script><script src="/scripts/stars-tag.js"></script><script defer="defer" src="/js/chunk-vendors.596cd323.js"></script><script defer="defer" src="/js/app.854c77dd.js"></script><link href="/css/app.43cad1be.css" rel="stylesheet"><link rel="icon" type="image/svg+xml" href="/img/icons/favicon.svg"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="robot-framework"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but robot-framework doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Robot Framework</title><meta name="description" content="Generic open source automation framework for acceptance testing, acceptance test driven development (ATDD), and robotic process automation (RPA)."><meta name="theme-color" content="#000000"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><script defer="defer" data-domain="robotframework.org" src="https://plausible.io/js/plausible.outbound-links.js"></script><script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script><script defer="defer" src="/scripts/gh-pages-spa.js"></script><script src="/scripts/stars-tag.js"></script><script defer="defer" src="/js/chunk-vendors.596cd323.js"></script><script defer="defer" src="/js/app.703286fc.js"></script><link href="/css/app.43cad1be.css" rel="stylesheet"><link rel="icon" type="image/svg+xml" href="/img/icons/favicon.svg"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="robot-framework"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but robot-framework doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
2 changes: 1 addition & 1 deletion js/509.69505509.js → js/509.32f710a7.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/app.854c77dd.js → js/app.703286fc.js

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions pyworker/runRobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from importlib import import_module, reload
from io import StringIO
from pathlib import Path

def log(message):
js.postMessage(json.dumps({"std_output": message}))

Expand All @@ -20,18 +20,21 @@ def log(message):
try:
import robot
from robot.libdocpkg import LibraryDocumentation
from robot.conf import RobotSettings
except ImportError:
robot = None

if robot is None:
log(f"Install Robot Framework")
rf_version = f"=={version}" if version else ""
requirements_list.insert(0, f"robotframework{rf_version}")
if not [req for req in requirements_list if req.split('==')[0] == 'robotframework']:
rf_version = f"=={version}" if version else ""
requirements_list.insert(0, f"robotframework{rf_version}")
try:
await micropip.install(requirements_list, keep_going=True)
time.sleep(1)
import robot
from robot.libdocpkg import LibraryDocumentation
from robot.conf import RobotSettings
log(f" = version {robot.__version__}\n")
except Exception as e:
js.console.log(f"Installation Exception: {e}")
Expand Down Expand Up @@ -111,6 +114,8 @@ def write_file(file):
js.console.log(f"Files in working dir: {os.listdir('.')}")
result = -2

console_links_enabled = "ConsoleLinks" in RobotSettings._cli_opts

try:
if test_case_name:
kwargs = {"test": test_case_name}
Expand All @@ -122,9 +127,13 @@ def write_file(file):
if robot_arguments:
log(f"Robot Run Arguments: {robot_args}\n")
log(f"\nRunning Robot Framework:\n")
if console_links_enabled:
robot_arguments["consolelinks"] = 'off'
else:
log(f"> robot --loglevel TRACE:INFO --exclude EXCL --skip SKIP\n"
f" --removekeywords tag:REMOVE --flattenkeywords tag:FLAT{testcli} .\n")
if console_links_enabled:
kwargs["consolelinks"] = 'off'

org_stdout = sys.__stdout__
org_stderr = sys.__stderr__
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js

Large diffs are not rendered by default.

0 comments on commit 3ceaa70

Please sign in to comment.