From f4e42e8872442ad5cf2a9f6bda2f2eb487bac4c3 Mon Sep 17 00:00:00 2001 From: t-hiroyoshi Date: Thu, 2 Jul 2015 17:10:44 +0900 Subject: [PATCH 1/2] Add a document for GetTableCellAttribute. --- content/en/steps/index.md | 1 + content/steps/GetTableCellAttribute.md | 54 ++++++++++++++++++++++++++ content/steps/index.md | 5 ++- 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 content/steps/GetTableCellAttribute.md diff --git a/content/en/steps/index.md b/content/en/steps/index.md index 631d431..a407535 100644 --- a/content/en/steps/index.md +++ b/content/en/steps/index.md @@ -102,6 +102,7 @@ You can create your own original test scenarios by combining these steps. * $num = The row number of the cell where "`column number`" column text equals "`text`" in the "`table`" table * $text = The text of the cell in "`column number`" column and "`row number`" row in the "`table`" table * $text = The text of the cell in "`column number`" column and "`row number`" row in the header of the "`table`" table +* $text = The "`attribute`" attribute of the cell in "`column number`" column and "`row number`" row in the header of the "`table`" table * $sum = Sum of the “`column number to sum`” column which “`column number to search`” column is “`text`” in the “`table`” table -------- diff --git a/content/steps/GetTableCellAttribute.md b/content/steps/GetTableCellAttribute.md new file mode 100644 index 0000000..10d92fd --- /dev/null +++ b/content/steps/GetTableCellAttribute.md @@ -0,0 +1,54 @@ +--- +date: 2015-07-02T16:08:08+09:00 +description: null +slug: null +tags: [] +title: $テキスト = 「テーブル名」テーブルの「行番号」行目「列番号」列目の「属性」属性 +--- + +表の中から指定された行番号と列番号のセルの属性値を取得します。 + +## パラメータ + +パラメータ名 | 説明 +------|--------- +`テーブル名` | CSS3セレクタが利用可能。 +`行番号` | 正の整数が利用可能。 +`列番号` | 正の整数が利用可能。 +`属性名` | チェック対象の属性名、文字列が利用可能。 + +## 実際の属性値と、期待している属性値と一致するか確認する例 + +``` +「http://docs.shouldbee.at/steps/GetTableCellAttribute/」に移動する +$ボブと表示されているセルのid属性の期待値 = 定数「bob」 +$実際の属性値 = 「#persons」表の「2」行目「2」列目の「id」属性 +{$ボブと表示されているセルのid属性の期待値}と{$実際の属性値}が一致すること +``` + +
+ + + + + + + + + + + + + + + + + +
氏名年齢
アリス22
ボブ23
+
+ +## 別の表記 + +* 「`テーブル名`」テーブルの「`列番号`」列目「`行番号`」行目の「`属性`」属性 +* 「`テーブル名`」表の「`行番号`」行目「`列番号`」列目の「`属性`」属性 +* 「`テーブル名`」表の「`列番号`」列目「`行番号`」行目の「`属性`」属性 diff --git a/content/steps/index.md b/content/steps/index.md index 911ef32..615da9e 100644 --- a/content/steps/index.md +++ b/content/steps/index.md @@ -99,8 +99,9 @@ title: ステップ一覧 ### 変数代入ステップ -* [$行番号 =「`テーブル名`」テーブルの「`列番号`」列目のテキストが「`テキスト`」の行番号](/steps/GetRowNumberByColumnText/) -* [$テキスト =「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目のテキスト](/steps/GetTableCellText/) +* [$行番号 = 「`テーブル名`」テーブルの「`列番号`」列目のテキストが「`テキスト`」の行番号](/steps/GetRowNumberByColumnText/) +* [$テキスト = 「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目のテキスト](/steps/GetTableCellText/) +* [$テキスト = 「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目の「`属性`」属性](/steps/GetTableCellAttribute/) * [$合計 = 「`テーブル名`」テーブルの「`検索する列番号`」列目が「`条件`」の「`合計する列番号`」列目を合計する](/steps/SumFilteredRows/) ## ウィンドウ From 315f0b2ff5ea87a39efd326601d7e10cf0ac5a58 Mon Sep 17 00:00:00 2001 From: t-hiroyoshi Date: Thu, 2 Jul 2015 17:40:13 +0900 Subject: [PATCH 2/2] Add a document for GetTableHeaderCellAttribute. --- content/en/steps/index.md | 3 +- content/steps/GetTableCellAttribute.md | 2 +- content/steps/GetTableHeaderCellAttribute.md | 54 ++++++++++++++++++++ content/steps/index.md | 9 ++-- 4 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 content/steps/GetTableHeaderCellAttribute.md diff --git a/content/en/steps/index.md b/content/en/steps/index.md index a407535..ad0bd4b 100644 --- a/content/en/steps/index.md +++ b/content/en/steps/index.md @@ -102,7 +102,8 @@ You can create your own original test scenarios by combining these steps. * $num = The row number of the cell where "`column number`" column text equals "`text`" in the "`table`" table * $text = The text of the cell in "`column number`" column and "`row number`" row in the "`table`" table * $text = The text of the cell in "`column number`" column and "`row number`" row in the header of the "`table`" table -* $text = The "`attribute`" attribute of the cell in "`column number`" column and "`row number`" row in the header of the "`table`" table +* $text = The "`attribute`" attribute of the cell in "`column number`" column and "`row number`" row in the header of the "`table`" table"" +* $text = The "`attribute`" attribute of the cell in "`column number`" column and "`row number`" row in the "`table`" table * $sum = Sum of the “`column number to sum`” column which “`column number to search`” column is “`text`” in the “`table`” table -------- diff --git a/content/steps/GetTableCellAttribute.md b/content/steps/GetTableCellAttribute.md index 10d92fd..6080de4 100644 --- a/content/steps/GetTableCellAttribute.md +++ b/content/steps/GetTableCellAttribute.md @@ -22,7 +22,7 @@ title: $テキスト = 「テーブル名」テーブルの「行番号」行目 ``` 「http://docs.shouldbee.at/steps/GetTableCellAttribute/」に移動する $ボブと表示されているセルのid属性の期待値 = 定数「bob」 -$実際の属性値 = 「#persons」表の「2」行目「2」列目の「id」属性 +$実際の属性値 = 「#persons」テーブルの「2」行目「2」列目の「id」属性 {$ボブと表示されているセルのid属性の期待値}と{$実際の属性値}が一致すること ``` diff --git a/content/steps/GetTableHeaderCellAttribute.md b/content/steps/GetTableHeaderCellAttribute.md new file mode 100644 index 0000000..d29e10b --- /dev/null +++ b/content/steps/GetTableHeaderCellAttribute.md @@ -0,0 +1,54 @@ +--- +date: 2015-07-02T17:11:31+09:00 +description: null +slug: null +tags: [] +title: $テキスト = 「`テーブル名`」テーブルのヘッダーの「`行番号`」行目「`列番号`」列目の「`属性`」属性 +--- + +表のヘッダーの中から指定された行番号と列番号のセルの属性値を取得します。 + +## パラメータ + +パラメータ名 | 説明 +------|--------- +`テーブル名` | CSS3セレクタが利用可能。 +`行番号` | 正の整数が利用可能。 +`列番号` | 正の整数が利用可能。 +`属性名` | チェック対象の属性名、文字列が利用可能。 + +## 実際の属性値と、期待している属性値と一致するか確認する例 + +``` +「http://docs.shouldbee.at/steps/GetTableHeaderCellAttribute/」に移動する +$氏名と表示されているセルのid属性の期待値 = 定数「name」 +$実際の属性値 = 「#persons」テーブルのヘッダーの「1」行目「1」列目の「id」属性 +{$氏名と表示されているセルのid属性の期待値}と{$実際の属性値}が一致すること +``` + +
+ + + + + + + + + + + + + + + + + +
氏名年齢
アリス22
ボブ23
+
+ +## 別の表記 + +* 「`テーブル名`」テーブルのヘッダーの「`列番号`」列目「`行番号`」行目の「`属性`」属性 +* 「`テーブル名`」表のヘッダーの「`行番号`」行目「`列番号`」列目の「`属性`」属性 +* 「`テーブル名`」表のヘッダーの「`列番号`」列目「`行番号`」行目の「`属性`」属性 diff --git a/content/steps/index.md b/content/steps/index.md index 615da9e..fb7c441 100644 --- a/content/steps/index.md +++ b/content/steps/index.md @@ -99,10 +99,11 @@ title: ステップ一覧 ### 変数代入ステップ -* [$行番号 = 「`テーブル名`」テーブルの「`列番号`」列目のテキストが「`テキスト`」の行番号](/steps/GetRowNumberByColumnText/) -* [$テキスト = 「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目のテキスト](/steps/GetTableCellText/) -* [$テキスト = 「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目の「`属性`」属性](/steps/GetTableCellAttribute/) -* [$合計 = 「`テーブル名`」テーブルの「`検索する列番号`」列目が「`条件`」の「`合計する列番号`」列目を合計する](/steps/SumFilteredRows/) +* [$行番号 =「`テーブル名`」テーブルの「`列番号`」列目のテキストが「`テキスト`」の行番号](/steps/GetRowNumberByColumnText/) +* [$テキスト =「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目のテキスト](/steps/GetTableCellText/) +* [$テキスト =「`テーブル名`」テーブルのヘッダーの「`行番号`」行目「`列番号`」列目の「`属性`」属性](/steps/GetTableHeaderCellAttribute/) +* [$テキスト =「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目の「`属性`」属性](/steps/GetTableCellAttribute/) +* [$合計 =「`テーブル名`」テーブルの「`検索する列番号`」列目が「`条件`」の「`合計する列番号`」列目を合計する](/steps/SumFilteredRows/) ## ウィンドウ