run_monkey_test: Perform basic monkey testing

View source: R/crash-test.R

run_monkey_testR Documentation

Perform basic monkey testing

Description

Internally required by record_app, run_crash_test, ... after the headless connection is opened.

Usage

run_monkey_test(app, headless_actions, screenshot = TRUE, path)

Arguments

app

Headless app R6 instance.

headless_actions

Custom code passed as an expression to manipulate the app with headless web browser, for instance app$set_inputs(obs = 200); app$run_js('1+1');. See https://rstudio.github.io/shinytest2/reference/AppDriver.html to get all available methods. If NULL, the app will undergo a classic random Monkey test session, taking a screenshot right after loading and after the monkey test. We do not recommend running a monkey test if your app is pointing to a database, unless the pipeline CI/CD runs in a dedicated test environment.

screenshot

Whether to take screenshot. Defaults to TRUE. Only works if headles_actions is NULL.

path

Screenshot path.


Novartis/shinyValidator documentation built on Aug. 21, 2023, 4:42 a.m.