课程章节
1.8 导出、导入和版本 2:31
预览和恢复早期版本,导出和导入项目,以及下载表格。
演示 Holarch 2.13。
您将学到
- 预览恢复某个自动版本会带来哪些更改,而不实际恢复
- 将整个项目导出为 JSON 文件
- 将项目文件导入为新项目
- 将数据库表格导出到 Excel
确保 Bike-Share Dock 项目安全且可迁移:编辑一个条目并对照项目的自动版本预览更改,将整个项目导出为 JSON 文件,将其导入为新项目,并将数据库表格下载为 Excel 报告。
练习
在 Holarch 中基于 CubeSat EO-1 演示项目亲自完成此操作。
- 打开您的 EO-1 演示项目(或创建它:管理项目 → 项目文件 ▾ → 新建演示项目 → CubeSat(引导式系统工程))。
- 在 数据库 中双击 6.3 Telemetry Archive 的描述,使其更精确,然后按 Enter。继续工作一两分钟,以便保存一个新的自动版本。
- 打开 控制与评审 → 基线和版本,单击页面标题栏中的 恢复以前的版本…。选择一个编辑之前的版本,查看它为 6.3 列出的更改,然后单击 取消。
- 在 管理项目 中打开该项目所在行的菜单 ⋯,选择 导出此项目…,然后单击 导出 JSON。
- 选择 项目文件 ▾ → 导入项目 (.json)… 并选择该文件。打开新项目,确认 SRS 及其图都在其中。
- 在副本的 数据库 中筛选类 Test Case,单击 导出…,选择 表格 (Excel),然后单击 导出。完成后删除副本:它会占用您的一个项目名额。
当您得到项目 JSON 文件和测试用例的 Excel 文件,并在恢复预览中看到 6.3 的更改时,即完成练习。
自测
- 自动版本与基线有什么区别?
- 您误恢复了一个版本。能回到原来的状态吗?
- 导入项目文件会覆盖其来源项目吗?
显示答案
自动版本与基线有什么区别?
自动版本在您编辑时大约每分钟保存一次,仅按所有者方案规定的天数保留。基线是您在里程碑时创建的命名快照,会一直保留。
您误恢复了一个版本。能回到原来的状态吗?
可以。恢复前的状态会先保存为一个版本,并且恢复操作是一个撤销步骤。
导入项目文件会覆盖其来源项目吗?
不会。导入会成为一个具有新标识的新项目,您是其所有者。
延伸阅读
文字稿
显示文字稿 (旁白和屏幕内容)
Introduction
Chapter eight: export, import and versions. Holarch saves every change for you, keeps earlier versions, and lets you take the whole project with you at any time.
This is the last chapter of Getting Started.
Versions
Holarch saves every change as you make it. To see what that gives you, change something. In the Database, double-click the description of Anchored Without Digging, make it more precise, and press Enter.
On screen: Database → edit the description of 10.2.
Holarch also keeps automatic versions of the whole project. In Manage Projects, open the project's row menu, and choose Restore a Previous Version.
On screen: Manage Projects → ⋯ → Restore a Previous Version…
The dialog says how long versions are kept on your plan. Select a version to see exactly what restoring it would change: here, the description you just edited. Restore puts it back, and the present state is kept as a version too, so you can always undo. Here, click Cancel.
On screen: The versions list → select → Cancel.
Export and import
To keep your own copy, or move the project to another Holarch account, choose Export this project from the same menu. Keep the format at Holarch backup, choose what to include, and click Export. The file holds the whole model and its attached files.
On screen: ⋯ → Export this project… → Holarch backup → Export.
A project file is imported from Project Files, Import Project. Choose the file, here the project as it was at the end of the last chapter.
On screen: Project Files ▾ → Import Project… → the file.
The import becomes a new project, with a new identity, and you are its owner. It opens on Home, with every item, relationship, document and diagram.
On screen: The imported project's Home.
Exports
Tables can be downloaded too. Open the Database, click Export, choose Table, Excel, and click Export. You get an Excel file with the table's columns.
On screen: Database → Export… → Table (Excel) → Export.
Recap
Let's recap. You changed an item, previewed that change against an automatic version of the project, exported the project as a file, imported it as a new project, and downloaded a table as an Excel report.
That completes Getting Started. You can now find your way around Holarch, build a model with items, relationships, diagrams and documents, share it, and keep it safe. The next tracks go deeper into requirements, behavior, architecture and documents.
On screen: Track complete card, then end card.