Can you please clarify how to use backups correctly?
I see how to create a backup, though how to restore it back?
Thanks in forward for the answer.
This is a good question
You can not restore the backup at once, instead you can restore each of the different parts of a backup separately. To do this, unzip kantu_backup.zip. Then you have several folders:
Test_cases (= macros): Click the gear icon on the macro tab and select Import JSON. Note that you can multi-select (Ctrl+A on Windows) all macros and import all of them at once.
Test_suites: Same as with test cases, but use the gear icon on the test suites tab.
CSVs: On the CSV tab, select “Import CSV”. Again, you can multi-select all files at once.
Visual UI Test Images: On the Visual tab, select “Load Image”. Again, you can multi-select and import all images at once.
Screenshots: Screenshots are intended to be some kind of log files, they are backup-ed, but can not be re-imported (as there is no need for it).
Lost macros after update
The restore in once function would be a highly valuable feature. I would like to run Kantu from Jenkins on different server instances. By automatic restoring the backup at once from command line, we would be able to ensure the latest changes in the files are taking effect and can be executed as a suite collection.
@Techi I see your point. The good news is that we will quite soon have an ever better solution for this: Direct file access for Kantu. With the upcoming file module support, you can store macro, test suites and web UI test images directly on the server/harddrive. This also means you will be able to manage them easily via version control e. g. Github.
Many thanks for the quick answer. This will be a great step forward.