BackstopJS Scenarios Constructor is a small tool for macOS to help you make a configuration file from sitemap.xml
for BackstopJS regression testing.
- Build a project in xCode or use a compiled application.
- Generate the
sitemap.xml
file in any convenient way. For example, through XML-Sitemaps Online. - Place this
sitemap.xml
anywhere on the web. - Enter URL where your sitemap.xml file placed.
- Fill other fields if needed.
- Make scenarios.
- Move the
backstop.json
to your project derictory nearnode_modules
.
-
Backstop.json
isn't a pretty printed due an asynchronous data generating. -
Generated XML should contain the root tag
urlset
, then the childurl
. If your XML doesn't match this pattern you should make a changes here:
for elem in xml["urlset"]["url"] {
let currentUrl = elem["loc"].element!.text! }
BackstopJS Scenarios Constructor uses SWXMLHash from drmohundro repository.