Skip to content
Repos

DevPlaceApp

C++ 557 B17 lines Opens in site

Directory Raw Download

#pragma once
// Spec: FR-CLI-01, VER-02. Smoke scripts: one command per line, '#' comments.
//   wait S | tap X Y | tap-text TEXT | tap-contains TEXT | type TEXT | key NAME | scroll X Y DY | resize WxH
//   shot PATH | expect-text TEXT | expect-no-text TEXT | back | dump
#include <string>

#include "ui/Host.hpp"

namespace dp {

class ScriptRunner {
 public:
  // Returns 0 when every expectation held, 1 otherwise. Failures print the line number and reason.
  static int run(ui::Host& host, ui::App& app, const std::string& path);
};

}  // namespace dp
41.8ms