DEV Community

Rahul
Rahul

Posted on Edited on

Testcraft Studio — office setup and complete file index

Testcraft Studio - office setup and file index

Copy each post's complete code block into the exact file path shown. Do not copy the opening/closing backticks. Save files as UTF-8 using All files, so Windows does not add a .txt extension.

Run the ready frontend without npm installation

  1. Install Node.js if it is not already available.
  2. Create a folder named testcraft-studio with dist and dist/assets subfolders.
  3. Copy these five files from their individual posts:
  1. Open PowerShell in testcraft-studio and run:
node serve.cjs
Enter fullscreen mode Exit fullscreen mode
  1. Open http://127.0.0.1:5175/ and keep PowerShell open during the presentation. Stop the server with Ctrl+C. If that port is occupied, use node serve.cjs 5176 and open http://127.0.0.1:5176/.

The five-file prebuilt option needs no npm installation or internet connection. Optional web fonts fall back to system fonts when offline.

Copy the complete editable frontend

Create the folders:

New-Item -ItemType Directory -Force testcraft-studio | Out-Null
Set-Location testcraft-studio
New-Item -ItemType Directory -Force src, src/pages, public, tests, tests/fixtures, dist, dist/assets | Out-Null
Enter fullscreen mode Exit fullscreen mode

Copy all 51 files below into those folders. Each post contains one file only.

  1. package.json
  2. package-lock.json
  3. vite.config.js
  4. index.html
  5. .gitignore
  6. serve.cjs
  7. README.md
  8. OFFICE_SETUP.md
  9. public/favicon.svg
  10. src/AppShell.jsx
  11. src/ChatResults.jsx
  12. src/Icon.jsx
  13. src/TemplateUpload.jsx
  14. src/access.js
  15. src/baseline.js
  16. src/chat.css
  17. src/chatAssistant.js
  18. src/excel.js
  19. src/files.js
  20. src/generation.js
  21. src/main.jsx
  22. src/pages/Admin.jsx
  23. src/pages/Approvals.jsx
  24. src/pages/Baselines.jsx
  25. src/pages/Chat.jsx
  26. src/pages/CreateCr.jsx
  27. src/pages/Dashboard.jsx
  28. src/pages/Evidence.jsx
  29. src/pages/Graph.jsx
  30. src/pages/Login.jsx
  31. src/pages/Readiness.jsx
  32. src/pages/Suites.jsx
  33. src/pages/Templates.jsx
  34. src/pages/Versions.jsx
  35. src/pages/Workspaces.jsx
  36. src/revision.css
  37. src/seed.js
  38. src/store.jsx
  39. src/studio.css
  40. src/styles.css
  41. src/suiteExport.js
  42. src/ui.jsx
  43. tests/fixtures/Membership_Baseline.md
  44. tests/fixtures/Membership_CR.md
  45. tests/fixtures/Membership_Revised.md
  46. tests/fixtures/Membership_Test_Template.xlsx.base64.txt
  47. tests/frontend.test.mjs
  48. dist/assets/index-B3eBTjX-.js
  49. dist/assets/index-je-ZePx5.css
  50. dist/favicon.svg
  51. dist/index.html

The Excel workbook is binary, so its post contains a lossless base64 text version. Save it as tests/fixtures/Membership_Test_Template.xlsx.base64.txt, then reconstruct the workbook once:

[IO.File]::WriteAllBytes((Join-Path (Get-Location) 'tests/fixtures/Membership_Test_Template.xlsx'), [Convert]::FromBase64String([IO.File]::ReadAllText((Join-Path (Get-Location) 'tests/fixtures/Membership_Test_Template.xlsx.base64.txt'))))
Enter fullscreen mode Exit fullscreen mode

Development and checks

Use Node.js 20.19+ in the 20.x release line or Node.js 22.12+. Installing dependencies needs internet access.

npm.cmd ci
npm.cmd run dev
Enter fullscreen mode Exit fullscreen mode

Open http://127.0.0.1:5175/. To verify and rebuild the frontend:

npm.cmd test
npm.cmd run build
node serve.cjs
Enter fullscreen mode Exit fullscreen mode

Run one server at a time on port 5175. React and React DOM are the only runtime packages; Vite is used for development and production builds.

Sign in and demonstrate the workflow

Choose MCM (Membership and Collateral Management). The public prototype system passwords are team-demo for User and admin-demo for Administrator.

Create a workspace, create its System Baseline with any one Business, Technical, or Functional / Bug Information document, and submit it for Administrator approval. Baseline creation, document edits, and CR merges require approval. Other workflows are available to team Users.

Add reviewed source-linked requirements and CR documents. In Workspace chat, ask document questions or request Technical, Functional, or Business test cases. Follow up to refine the draft, inspect supporting source revisions, and save cases to Test suites or export CSV. Choose a template or upload Excel before generating. The frontend uses a local evidence adapter; the real LLM connection is deferred to the backend phase. Clarifications are optional. Use Knowledge versions to select CR changes, submit a merge, and approve the new baseline as Administrator.

Connections and Data & audit are tabs under Administration. The frontend stores workspace records in the browser. Backend services, agents, production authentication, and server-side approval enforcement are deferred. This transfer contains application code and synthetic fixtures; it does not transfer uploaded documents, private conversations, or browser sessions.

Top comments (0)