@@ -7,20 +7,14 @@ module.exports = {
|
||||
// Add projects table records
|
||||
await queryInterface.bulkInsert("Projects", [
|
||||
{
|
||||
name: "Project 1",
|
||||
detail: "Details of Project 1",
|
||||
name: "TestPlat Test",
|
||||
detail: "Test Plat's Manual test",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "Project 2",
|
||||
detail: "",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "Project 3",
|
||||
detail: "",
|
||||
name: "Iron Muscle App(筋トレアプリ)",
|
||||
detail: "リリース前総合評価",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
@@ -29,53 +23,67 @@ module.exports = {
|
||||
// Add folders table records
|
||||
await queryInterface.bulkInsert("folders", [
|
||||
{
|
||||
name: "Folder 1",
|
||||
detail: "Details of Folder 1",
|
||||
projectId: 1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "Folder 2",
|
||||
name: "Account",
|
||||
detail: "",
|
||||
projectId: 1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "Folder 3",
|
||||
name: "Contact",
|
||||
detail: "",
|
||||
projectId: 1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "アカウント",
|
||||
detail: "",
|
||||
projectId: 2,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "トレーニング記録",
|
||||
detail: "",
|
||||
projectId: 2,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "タイムライン",
|
||||
detail: "",
|
||||
projectId: 2,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
]);
|
||||
|
||||
// Add runs table records
|
||||
await queryInterface.bulkInsert("runs", [
|
||||
{
|
||||
name: "Run 1",
|
||||
name: "First Test Run",
|
||||
projectId: 1,
|
||||
configurations: 1,
|
||||
description: "",
|
||||
state: 1,
|
||||
description: "5/14 - 5/31",
|
||||
state: 4,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "Run 2",
|
||||
projectId: 1,
|
||||
name: "総合評価第一回",
|
||||
projectId: 2,
|
||||
configurations: 1,
|
||||
description: "",
|
||||
state: 1,
|
||||
description: "5/14 - 5/31",
|
||||
state: 4,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
name: "Run 3",
|
||||
projectId: 1,
|
||||
name: "総合評価第二回",
|
||||
projectId: 2,
|
||||
configurations: 1,
|
||||
description: "",
|
||||
description: "6/1 - 6/12",
|
||||
state: 1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
@@ -85,30 +93,170 @@ module.exports = {
|
||||
// Add cases table records
|
||||
await queryInterface.bulkInsert("cases", [
|
||||
{
|
||||
title: "Sample Case 1",
|
||||
title: "Signup",
|
||||
state: 1,
|
||||
priority: 1,
|
||||
type: 1,
|
||||
type: 4,
|
||||
automationStatus: 1,
|
||||
description: "Sample description for case 1",
|
||||
description: "User can signup from signup form.",
|
||||
template: 1,
|
||||
preConditions: "Sample pre-conditions for case 1",
|
||||
expectedResults: "Sample expected results for case 1",
|
||||
preConditions: "Not signed in",
|
||||
expectedResults: "",
|
||||
folderId: 1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "Sample Case 2",
|
||||
title: "Signin",
|
||||
state: 1,
|
||||
priority: 1,
|
||||
type: 4,
|
||||
automationStatus: 1,
|
||||
description: "User can signin from signin form.",
|
||||
template: 1,
|
||||
preConditions: "Not signed in",
|
||||
expectedResults: "",
|
||||
folderId: 1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "Contact",
|
||||
state: 1,
|
||||
priority: 1,
|
||||
type: 4,
|
||||
automationStatus: 1,
|
||||
description: "User can send inquiry from 'contact us' form.",
|
||||
template: 0,
|
||||
preConditions: "",
|
||||
expectedResults: "",
|
||||
folderId: 2,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "メールアドレスでのアカウント登録",
|
||||
state: 1,
|
||||
priority: 2,
|
||||
type: 4,
|
||||
automationStatus: 1,
|
||||
description: "メールアドレス、パスワードをフォームに入力してサインアップボタンを押す",
|
||||
template: 0,
|
||||
preConditions: "未サインイン状態であること。アカウントがないこと。",
|
||||
expectedResults: "サインアップができ、自動でアカウントページに遷移する",
|
||||
folderId: 3,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "メールアドレスでのサインイン",
|
||||
state: 1,
|
||||
priority: 2,
|
||||
type: 4,
|
||||
automationStatus: 1,
|
||||
description: "メールアドレス、パスワードをフォームに入力してサインインボタンを押す",
|
||||
template: 0,
|
||||
preConditions: "未サインイン状態であること",
|
||||
expectedResults: "サインインができ、自動でアカウントページに遷移する",
|
||||
folderId: 3,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "ソーシャルアカウントサインイン",
|
||||
state: 1,
|
||||
priority: 1,
|
||||
type: 4,
|
||||
automationStatus: 1,
|
||||
description: "Googleアカウントで筋トレアプリにサインインできること",
|
||||
template: 0,
|
||||
preConditions: "未サインイン状態であること",
|
||||
expectedResults: "サインインでき、自動でアカウントページに遷移する",
|
||||
folderId: 3,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "アカウント情報編集",
|
||||
state: 1,
|
||||
priority: 3,
|
||||
type: 4,
|
||||
automationStatus: 1,
|
||||
description: "ユーザー名、アバター画像を変更できること",
|
||||
template: 0,
|
||||
preConditions: "アバター画像(.png, .svg, .jpg)を用意する",
|
||||
expectedResults: "アバター画像を登録できること",
|
||||
folderId: 3,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "アカウント閲覧",
|
||||
state: 1,
|
||||
priority: 0,
|
||||
type: 1,
|
||||
automationStatus: 1,
|
||||
description: "Sample description for case 2",
|
||||
description: "ほかの人のアカウント情報は見れないこと",
|
||||
template: 1,
|
||||
preConditions: "Sample pre-conditions for case 2",
|
||||
expectedResults: "Sample expected results for case 2",
|
||||
folderId: 1,
|
||||
preConditions: "特になし",
|
||||
expectedResults: "",
|
||||
folderId: 3,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "筋トレ記録(部位選択)",
|
||||
state: 1,
|
||||
priority: 2,
|
||||
type: 1,
|
||||
automationStatus: 1,
|
||||
description: "部位選択",
|
||||
template: 1,
|
||||
preConditions: "特になし",
|
||||
expectedResults: "筋トレ部位を選択できること",
|
||||
folderId: 4,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "筋トレ記録(回数選択)",
|
||||
state: 1,
|
||||
priority: 2,
|
||||
type: 1,
|
||||
automationStatus: 1,
|
||||
description: "回数選択",
|
||||
template: 1,
|
||||
preConditions: "特になし",
|
||||
expectedResults: "筋トレ回数を選択できること",
|
||||
folderId: 4,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "筋トレ記録 ダイアログのクローズ",
|
||||
state: 1,
|
||||
priority: 3,
|
||||
type: 3,
|
||||
automationStatus: 1,
|
||||
description: "選択ダイアログの機能性確認",
|
||||
template: 1,
|
||||
preConditions: "ダイアログを開く",
|
||||
expectedResults: "ダイアログの「×」ボタンを押して閉じれること",
|
||||
folderId: 4,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
title: "筋トレ記録 選択ダイアログ",
|
||||
state: 1,
|
||||
priority: 3,
|
||||
type: 3,
|
||||
automationStatus: 1,
|
||||
description: "選択ダイアログのレスポンシブ確認",
|
||||
template: 1,
|
||||
preConditions: "スマホでウェブサイトにアクセスする",
|
||||
expectedResults: "ダイアログの表示がおかしくないこと",
|
||||
folderId: 4,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
@@ -117,26 +265,38 @@ module.exports = {
|
||||
// Add steps table records
|
||||
await queryInterface.bulkInsert("steps", [
|
||||
{
|
||||
step: "Sample Step 1",
|
||||
result: "Sample Result 1",
|
||||
step: "Check accout status",
|
||||
result: "Never have account",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
step: "Sample Step 2",
|
||||
result: "Sample Result 2",
|
||||
step: "Enter signup form and then, click 'signup' button.",
|
||||
result: "Automatically redirect to the account page",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
step: "Sample Step 3",
|
||||
result: "Sample Result 3",
|
||||
step: "Check signin status",
|
||||
result: "Not signed in",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
step: "Sample Step 4",
|
||||
result: "Sample Result 4",
|
||||
step: "Enter signin form and then, click 'signin button.'",
|
||||
result: "Automatically redirect to the account page",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
step: "ブラウザのシークレットモードに入る",
|
||||
result: "開発者モードのLocal Storageを開き、sessionがないことを確認する。",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
step: "'account/userinfo?userid=xxx'に遷移する",
|
||||
result: "エラーページにリダイレクトされ、403エラーなこと。",
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
@@ -159,25 +319,31 @@ module.exports = {
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
caseId: 1,
|
||||
caseId: 2,
|
||||
stepId: 3,
|
||||
stepNo: 3,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
caseId: 1,
|
||||
stepId: 4,
|
||||
stepNo: 4,
|
||||
stepNo: 1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
caseId: 2,
|
||||
stepId: 2,
|
||||
stepId: 4,
|
||||
stepNo: 2,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
{
|
||||
caseId: 8,
|
||||
stepId: 5,
|
||||
stepNo: 1,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
}, {
|
||||
caseId: 8,
|
||||
stepId: 6,
|
||||
stepNo: 2,
|
||||
createdAt: new Date(),
|
||||
updatedAt: new Date(),
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user