SlideShare a Scribd company logo
1 of 19
Eggplant Functional
レッスン 5
外部データ
A Note about File Interactions
• Eggplant Functionalは、Eggplantが実行されているマシンのファイルに対して多くの操作を実行できる。
しかし、VNCプロトコルの制限により、SUTにあるファイルを直接操作するコマンドはありません。
• 上記制限の例外は、SUTのドライブを共有してEggplantマシンにマウントでき、
ローカルファイルシステムからそのコンテンツにアクセスできる場合である。
© Copyright 2019 Eggplant
Where to Store the File
• スイート内のリソースフォルダ
• 外部のファイル保管先を指定
© Copyright 2019 Eggplant
Reading Text/CSV files
• SenseTalkスクリプト言語を使用すると、ファイルから簡単に読込むことが
できる。 ファイルハンドルを作成したり、ファイルを明示的に開いたりする必
要はありません。
put file "/path/to/someFile.txt“ // reads and outputs the
file contents
• ファイル内容の繰り返し処理も容易に実現:
repeat with each line of file "/path/to/someFile.txt"
// reads each line in turn
put it // outputs the current line
end repeat
© Copyright 2019 Eggplant
Reading Text/CSV Files (Continued)
• ラインを繰返し読込み処理する場合、特定のファイルに簡単にアクセスできる。
カンマがデフォルトの区切り文字である。:
repeat with each line of file "/path/to/someFile.txt" // reads each
line in turn
click item 1 of it // clicks the first item of the current line
typetext item 3 of it // types the third item of the current line
end repeat
© Copyright 2019 Eggplant
Item Delimiter
• ItemDelimiterローカルプロパティ(またはDefaultItemDelimiterグローバルプロ
パティ)は、文字列のアイテムまたはテキストアイテムのチャンクにアクセスするときに、テキスト
アイテム間のセパレーターとして扱われる文字列を定義する。
• デフォルトのアイテム区切り文字はカンマです(変更可能) :
© Copyright 2019 Eggplant
※チャンクとは:
大きなデータを分割して制御情報を付加したひとまとまりの断片
Creating Files
• ファイルの作成は、ファイルを読むのと同じくらい簡単である。
次のコマンドは、ファイルがまだ存在しない場合にファイル作成する。
存在する場合は、上書きする。
put myVar into file "/path/to/someFile.txt"
© Copyright 2019 Eggplant
Writing to a Data File
• SenseTalkは書込みプロセスを簡単にする。
次のコマンドは、指定したファイルにデータを追加する。
ファイルが存在しない場合は作成される。
put myVar after file “/path/to/someFile.txt"
• データ付加方法:
put myVar before file “/path/to/someFile.txt"
• データ挿入方法:
insert myVar after line 5 of file
"/path/to/someFile.txt"
© Copyright 2019 Eggplant
Moving Files
SenseTalkには、ローカルファイルシステムにアクセスし操作するための多くのコマンドがある。
簡単な英語のような構文を使用して、コマンドを介してファイルを移動できる。:
move file “/path/to/someFile.txt” to “/different/path/“
© Copyright 2019 Eggplant
Using Excel Files: Command Examples
• SenseTalkは、Microsoft Excel(.xlsx)形式で保存されたデータにアクセス可能である。
• Excelファイルをサポートするために、SenseTalkの次のコマンドを実行する。:
• ワークブック関数
• ワークシート関数
© Copyright 2019 Eggplant
Using Excel Files: Command Examples (Cont.)
• セル関数
• セル範囲関数
• and much more…
© Copyright 2019 Eggplant
Database Connections
• Eggplant Functionalは、ODBC接続機能を使用して、さまざまなデータベースの読み取りと書
き込みを行うことができる。 ODBCデータソースの設定方法を正確に説明することは、このトレーニ
ングの範囲外である。
• Eggplant Functionalは64ビットアプリケーションであるため、ODBCデータソースを設定するとき
は64ビットODBCドライバーを使用する必要がある。
• データベースと対話するための2つのオプションがある。 SQLに慣れていない場合は、組み込みの
SenseTalkコマンドを使用するか、またはExecuteSQLコマンドを使用することができる。
© Copyright 2019 Eggplant
Connecting to a Database
• Eggplant Functionalでデータベースに接続するには、ODBCデータソースが機能
している必要がある。
• 接続するときは、データソース名 及び 接続に必要な資格情報を指定する。
set myDB to (type:"odbc", DSN:"DataSource1",
user:"root", password:"ygh$r3")
• 次に、操作するテーブル指定を設定する。
set memberTable to table “Members” of
myDB
© Copyright 2019 Eggplant
Reading Database Records
• 一般的なSQLクエリオプションに基づいて、テーブルのすべてのレコードまたはレコード
のセットにアクセスできる。
put the records of memberTable into
members
get the records of memberTable where
lastName is "Smith"
get records of memberTable where lastName
begins with "S" and lastName isn't "Smith"
• 注:大きなテーブルからすべてのレコードをプルすると、Eggplant機能の速度低下
やメモリの問題が発生する。
© Copyright 2019 Eggplant
More about Records
• レコードは、取得元のデータベースへの参照を含むオブジェクトである。
この関係により、データベースを明示的に参照せずにレコードの内容を更新できる。
add 30 days to member's expirationDate -- this
will update the database automatically
• レコードを手動で更新する場合は、この自動更新機能をオフにすることができる。
• レコードを追加または削除することもできる。
set newMember to (firstName:"Fritz",
lastName:"Geisler", memberNumber:4307)
add record newMember to myTable
delete record someRecord
© Copyright 2019 Eggplant
Using a Record Iterator
• レコードのセットをテーブルからリストとして取り込む代わりに、一度に1つのレコードの
セットを反復処理する「 Record Iterator 」を取得することができる。
set memberIterator to iterate over the
records of memberTable
• Iteratorの”nextValue”プロパティを使用して次のレコードを取得できる。
put memberIterator’s nextValue into currentMember
• このアプローチにより、レコードアプリの不可抗力問題が回避される。
© Copyright 2019 Eggplant
ExecuteSQL()
SQL実行は、データベースを引渡し、そのデータベースで実行するSQLコマンドを引渡すことができる。
© Copyright 2019 Eggplant
演習: Using External Data
使用するもの:
• 以下を使用する。: responsive_form.html
• 以下を使用する。: ResponsiveList.csv (download link below)
Password: eggplant
https://testplant.egnyte.com/dl/tAtjhVkD88
© Copyright 2019 Eggplant
演習: Using External Data
• Chromeを開き、 以下にアクセスする。
Exercise 5 in bookmark あるいは responsive_form.html
• データファイルを使用して、フォームに入力する。
• ファイルを変数に設定する。
- 変数から読み取る方法を理解する。
• 必要に応じて画像/テキストをキャプチャし、ホットスポットを調整する。
• すべてのデータをシートに配置するには、1回の繰り返しループが必要である。
• 最後のデータセットは、色が緑であり、色の選択にリストされていないため失敗する。 色が利用可能かどう
かをチェックし、そうでない場合はエラーを記録するifステートメントを記述する。
© Copyright 2019 Eggplant

More Related Content

What's hot

Angular 6 Form Validation with Material
Angular 6 Form Validation with MaterialAngular 6 Form Validation with Material
Angular 6 Form Validation with MaterialMalika Munaweera
 
ASP.NET MVC.
ASP.NET MVC.ASP.NET MVC.
ASP.NET MVC.Ni
 
iOS/Androidアプリエンジニアが理解すべき「Model」の振る舞い
iOS/Androidアプリエンジニアが理解すべき「Model」の振る舞いiOS/Androidアプリエンジニアが理解すべき「Model」の振る舞い
iOS/Androidアプリエンジニアが理解すべき「Model」の振る舞いKen Morishita
 
Saving Time By Testing With Jest
Saving Time By Testing With JestSaving Time By Testing With Jest
Saving Time By Testing With JestBen McCormick
 
iOSにおけるパフォーマンス計測
iOSにおけるパフォーマンス計測iOSにおけるパフォーマンス計測
iOSにおけるパフォーマンス計測Toshiyuki Hirata
 
React Native - Getting Started
React Native - Getting StartedReact Native - Getting Started
React Native - Getting StartedTracy Lee
 
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Edureka!
 
MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )Ahmed Emad
 
【アシアル塾】PHPオブジェクト指向再入門・第四回デザインパターンに学ぶクラス設計
【アシアル塾】PHPオブジェクト指向再入門・第四回デザインパターンに学ぶクラス設計【アシアル塾】PHPオブジェクト指向再入門・第四回デザインパターンに学ぶクラス設計
【アシアル塾】PHPオブジェクト指向再入門・第四回デザインパターンに学ぶクラス設計アシアル株式会社
 
BDD Selenium for Agile Teams - User Stories
BDD Selenium for Agile Teams - User StoriesBDD Selenium for Agile Teams - User Stories
BDD Selenium for Agile Teams - User StoriesSauce Labs
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework tola99
 

What's hot (20)

Jpa
JpaJpa
Jpa
 
Angular 6 Form Validation with Material
Angular 6 Form Validation with MaterialAngular 6 Form Validation with Material
Angular 6 Form Validation with Material
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
Optional in Java 8
Optional in Java 8Optional in Java 8
Optional in Java 8
 
ASP.NET MVC.
ASP.NET MVC.ASP.NET MVC.
ASP.NET MVC.
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
iOS/Androidアプリエンジニアが理解すべき「Model」の振る舞い
iOS/Androidアプリエンジニアが理解すべき「Model」の振る舞いiOS/Androidアプリエンジニアが理解すべき「Model」の振る舞い
iOS/Androidアプリエンジニアが理解すべき「Model」の振る舞い
 
Saving Time By Testing With Jest
Saving Time By Testing With JestSaving Time By Testing With Jest
Saving Time By Testing With Jest
 
Java Spring
Java SpringJava Spring
Java Spring
 
凝集度と責務
凝集度と責務凝集度と責務
凝集度と責務
 
iOSにおけるパフォーマンス計測
iOSにおけるパフォーマンス計測iOSにおけるパフォーマンス計測
iOSにおけるパフォーマンス計測
 
React Native - Getting Started
React Native - Getting StartedReact Native - Getting Started
React Native - Getting Started
 
Selenium with java
Selenium with javaSelenium with java
Selenium with java
 
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
Selenium Page Object Model Using Page Factory | Selenium Tutorial For Beginne...
 
MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )
 
Angular Unit Testing
Angular Unit TestingAngular Unit Testing
Angular Unit Testing
 
What Is Spring?
What Is Spring?What Is Spring?
What Is Spring?
 
【アシアル塾】PHPオブジェクト指向再入門・第四回デザインパターンに学ぶクラス設計
【アシアル塾】PHPオブジェクト指向再入門・第四回デザインパターンに学ぶクラス設計【アシアル塾】PHPオブジェクト指向再入門・第四回デザインパターンに学ぶクラス設計
【アシアル塾】PHPオブジェクト指向再入門・第四回デザインパターンに学ぶクラス設計
 
BDD Selenium for Agile Teams - User Stories
BDD Selenium for Agile Teams - User StoriesBDD Selenium for Agile Teams - User Stories
BDD Selenium for Agile Teams - User Stories
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
 

Similar to Eggplant Functional - Lesson 5 (Japanese slides)

クラウド開発に役立つ OSS あれこれ
クラウド開発に役立つ OSS あれこれクラウド開発に役立つ OSS あれこれ
クラウド開発に役立つ OSS あれこれMasataka MIZUNO
 
Dbtechshowcasesapporo mysql-turing-for-cloud-0.9.3
Dbtechshowcasesapporo mysql-turing-for-cloud-0.9.3Dbtechshowcasesapporo mysql-turing-for-cloud-0.9.3
Dbtechshowcasesapporo mysql-turing-for-cloud-0.9.3infinite_loop
 
実はとても面白い...Documentation library
実はとても面白い...Documentation library実はとても面白い...Documentation library
実はとても面白い...Documentation libraryKouta Shiobara
 
eZ Publish 2012年5月勉強会 - サイトアクセス
eZ Publish 2012年5月勉強会 - サイトアクセスeZ Publish 2012年5月勉強会 - サイトアクセス
eZ Publish 2012年5月勉強会 - サイトアクセスericsagnes
 
eZ Publish勉強会2013年3月「eZ Publishの構築を簡単に!」
eZ Publish勉強会2013年3月「eZ Publishの構築を簡単に!」eZ Publish勉強会2013年3月「eZ Publishの構築を簡単に!」
eZ Publish勉強会2013年3月「eZ Publishの構築を簡単に!」ericsagnes
 
OCI serverless introduction
OCI serverless introductionOCI serverless introduction
OCI serverless introductionSuguruSugiyama
 
Windows azureって何
Windows azureって何Windows azureって何
Windows azureって何Kana SUZUKI
 
コンテキストデータの永続化のための戦略
コンテキストデータの永続化のための戦略コンテキストデータの永続化のための戦略
コンテキストデータの永続化のための戦略fisuda
 
AWSマイスターシリーズReloaded(AWS Beanstalk)
AWSマイスターシリーズReloaded(AWS Beanstalk)AWSマイスターシリーズReloaded(AWS Beanstalk)
AWSマイスターシリーズReloaded(AWS Beanstalk)Akio Katayama
 
20120416 aws meister-reloaded-aws-elasticbeanstalk-public
20120416 aws meister-reloaded-aws-elasticbeanstalk-public20120416 aws meister-reloaded-aws-elasticbeanstalk-public
20120416 aws meister-reloaded-aws-elasticbeanstalk-publicAmazon Web Services Japan
 
マルチテナント環境における WebLogic Server 管理
マルチテナント環境における WebLogic Server 管理マルチテナント環境における WebLogic Server 管理
マルチテナント環境における WebLogic Server 管理Masa Sasaki
 
How to walk_on_windows_azure_platform
How to walk_on_windows_azure_platformHow to walk_on_windows_azure_platform
How to walk_on_windows_azure_platformYoshida Yuri
 
Introduction to web development 1
Introduction to web development 1Introduction to web development 1
Introduction to web development 1hideaki honda
 
Azure serverless!! azure functionsでサーバーを意識しない開発
Azure serverless!! azure functionsでサーバーを意識しない開発Azure serverless!! azure functionsでサーバーを意識しない開発
Azure serverless!! azure functionsでサーバーを意識しない開発Yuki Hattori
 
Eggplant Functional - Lesson 10 (Japanese slides)
Eggplant Functional - Lesson 10 (Japanese slides)Eggplant Functional - Lesson 10 (Japanese slides)
Eggplant Functional - Lesson 10 (Japanese slides)Eggplant
 
EPUB3以降とReadium
EPUB3以降とReadiumEPUB3以降とReadium
EPUB3以降とReadiumMakoto Murata
 

Similar to Eggplant Functional - Lesson 5 (Japanese slides) (20)

クラウド開発に役立つ OSS あれこれ
クラウド開発に役立つ OSS あれこれクラウド開発に役立つ OSS あれこれ
クラウド開発に役立つ OSS あれこれ
 
Dbtechshowcasesapporo mysql-turing-for-cloud-0.9.3
Dbtechshowcasesapporo mysql-turing-for-cloud-0.9.3Dbtechshowcasesapporo mysql-turing-for-cloud-0.9.3
Dbtechshowcasesapporo mysql-turing-for-cloud-0.9.3
 
実はとても面白い...Documentation library
実はとても面白い...Documentation library実はとても面白い...Documentation library
実はとても面白い...Documentation library
 
eZ Publish 2012年5月勉強会 - サイトアクセス
eZ Publish 2012年5月勉強会 - サイトアクセスeZ Publish 2012年5月勉強会 - サイトアクセス
eZ Publish 2012年5月勉強会 - サイトアクセス
 
eZ Publish勉強会2013年3月「eZ Publishの構築を簡単に!」
eZ Publish勉強会2013年3月「eZ Publishの構築を簡単に!」eZ Publish勉強会2013年3月「eZ Publishの構築を簡単に!」
eZ Publish勉強会2013年3月「eZ Publishの構築を簡単に!」
 
OCI serverless introduction
OCI serverless introductionOCI serverless introduction
OCI serverless introduction
 
Windows azureって何
Windows azureって何Windows azureって何
Windows azureって何
 
コンテキストデータの永続化のための戦略
コンテキストデータの永続化のための戦略コンテキストデータの永続化のための戦略
コンテキストデータの永続化のための戦略
 
Redmine Ansible
Redmine AnsibleRedmine Ansible
Redmine Ansible
 
Citrix eco new
Citrix eco newCitrix eco new
Citrix eco new
 
20090328
2009032820090328
20090328
 
AWSマイスターシリーズReloaded(AWS Beanstalk)
AWSマイスターシリーズReloaded(AWS Beanstalk)AWSマイスターシリーズReloaded(AWS Beanstalk)
AWSマイスターシリーズReloaded(AWS Beanstalk)
 
20120416 aws meister-reloaded-aws-elasticbeanstalk-public
20120416 aws meister-reloaded-aws-elasticbeanstalk-public20120416 aws meister-reloaded-aws-elasticbeanstalk-public
20120416 aws meister-reloaded-aws-elasticbeanstalk-public
 
マルチテナント環境における WebLogic Server 管理
マルチテナント環境における WebLogic Server 管理マルチテナント環境における WebLogic Server 管理
マルチテナント環境における WebLogic Server 管理
 
How to walk_on_windows_azure_platform
How to walk_on_windows_azure_platformHow to walk_on_windows_azure_platform
How to walk_on_windows_azure_platform
 
Introduction to web development 1
Introduction to web development 1Introduction to web development 1
Introduction to web development 1
 
Azure serverless!! azure functionsでサーバーを意識しない開発
Azure serverless!! azure functionsでサーバーを意識しない開発Azure serverless!! azure functionsでサーバーを意識しない開発
Azure serverless!! azure functionsでサーバーを意識しない開発
 
Eggplant Functional - Lesson 10 (Japanese slides)
Eggplant Functional - Lesson 10 (Japanese slides)Eggplant Functional - Lesson 10 (Japanese slides)
Eggplant Functional - Lesson 10 (Japanese slides)
 
EPUB3以降とReadium
EPUB3以降とReadiumEPUB3以降とReadium
EPUB3以降とReadium
 
Oracle Database (CDB) on Docker を動かしてみる
Oracle Database (CDB) on Docker を動かしてみるOracle Database (CDB) on Docker を動かしてみる
Oracle Database (CDB) on Docker を動かしてみる
 

More from Eggplant

Eggplant Functional - Lesson 1 (Japanese slides)
Eggplant Functional - Lesson 1 (Japanese slides)Eggplant Functional - Lesson 1 (Japanese slides)
Eggplant Functional - Lesson 1 (Japanese slides)Eggplant
 
Eggplant Functional - Lesson 3 (Japanese slides)
Eggplant Functional - Lesson 3 (Japanese slides)Eggplant Functional - Lesson 3 (Japanese slides)
Eggplant Functional - Lesson 3 (Japanese slides)Eggplant
 
Eggplant Functional - Lesson 4 (Japanese slides)
Eggplant Functional - Lesson 4 (Japanese slides)Eggplant Functional - Lesson 4 (Japanese slides)
Eggplant Functional - Lesson 4 (Japanese slides)Eggplant
 
Eggplant Functional - Lesson 6 (Japanese slides)
Eggplant Functional - Lesson 6 (Japanese slides)Eggplant Functional - Lesson 6 (Japanese slides)
Eggplant Functional - Lesson 6 (Japanese slides)Eggplant
 
Eggplant Functional - Lesson 11 (Japanese slides)
Eggplant Functional - Lesson 11 (Japanese slides)Eggplant Functional - Lesson 11 (Japanese slides)
Eggplant Functional - Lesson 11 (Japanese slides)Eggplant
 
Eggplant Functional - Lesson 7 (Japanese slides)
Eggplant Functional - Lesson 7 (Japanese slides)Eggplant Functional - Lesson 7 (Japanese slides)
Eggplant Functional - Lesson 7 (Japanese slides)Eggplant
 
Eggplant Functional - Lesson 8 (Japanese slides)
Eggplant Functional - Lesson 8 (Japanese slides)Eggplant Functional - Lesson 8 (Japanese slides)
Eggplant Functional - Lesson 8 (Japanese slides)Eggplant
 
Eggplant Functional - Lesson 9 (Japanese slides)
Eggplant Functional - Lesson 9 (Japanese slides)Eggplant Functional - Lesson 9 (Japanese slides)
Eggplant Functional - Lesson 9 (Japanese slides)Eggplant
 
Eggplant AI - Lesson 5 Slides (Japanese)
Eggplant AI - Lesson 5 Slides (Japanese)Eggplant AI - Lesson 5 Slides (Japanese)
Eggplant AI - Lesson 5 Slides (Japanese)Eggplant
 
Eggplant AI - Lesson 3 Slides (Japanese)
Eggplant AI - Lesson 3 Slides (Japanese)Eggplant AI - Lesson 3 Slides (Japanese)
Eggplant AI - Lesson 3 Slides (Japanese)Eggplant
 
Eggplant AI - Lesson 6 Slides (Japanese)
Eggplant AI - Lesson 6 Slides (Japanese)Eggplant AI - Lesson 6 Slides (Japanese)
Eggplant AI - Lesson 6 Slides (Japanese)Eggplant
 
Eggplant AI - Lesson 2 Slides (Japanese)
Eggplant AI - Lesson 2 Slides (Japanese)Eggplant AI - Lesson 2 Slides (Japanese)
Eggplant AI - Lesson 2 Slides (Japanese)Eggplant
 
Eggplant AI - Lesson 1 Slides (Japanese)
Eggplant AI - Lesson 1 Slides (Japanese)Eggplant AI - Lesson 1 Slides (Japanese)
Eggplant AI - Lesson 1 Slides (Japanese)Eggplant
 
Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​
Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​
Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​Eggplant
 
AI based Testing in Finance & Retail Breakfast Briefing
AI based Testing in Finance & Retail Breakfast BriefingAI based Testing in Finance & Retail Breakfast Briefing
AI based Testing in Finance & Retail Breakfast BriefingEggplant
 
6 Top Tips to a Testing Strategy That Works
6 Top Tips to a Testing Strategy That Works6 Top Tips to a Testing Strategy That Works
6 Top Tips to a Testing Strategy That WorksEggplant
 
Importance of testing for the business
Importance of testing for the businessImportance of testing for the business
Importance of testing for the businessEggplant
 
Test Automation Beyond Test Execution
Test Automation Beyond Test ExecutionTest Automation Beyond Test Execution
Test Automation Beyond Test ExecutionEggplant
 
Automation As An Ally
Automation As An AllyAutomation As An Ally
Automation As An AllyEggplant
 

More from Eggplant (20)

Eggplant Functional - Lesson 1 (Japanese slides)
Eggplant Functional - Lesson 1 (Japanese slides)Eggplant Functional - Lesson 1 (Japanese slides)
Eggplant Functional - Lesson 1 (Japanese slides)
 
Eggplant Functional - Lesson 3 (Japanese slides)
Eggplant Functional - Lesson 3 (Japanese slides)Eggplant Functional - Lesson 3 (Japanese slides)
Eggplant Functional - Lesson 3 (Japanese slides)
 
Eggplant Functional - Lesson 4 (Japanese slides)
Eggplant Functional - Lesson 4 (Japanese slides)Eggplant Functional - Lesson 4 (Japanese slides)
Eggplant Functional - Lesson 4 (Japanese slides)
 
Eggplant Functional - Lesson 6 (Japanese slides)
Eggplant Functional - Lesson 6 (Japanese slides)Eggplant Functional - Lesson 6 (Japanese slides)
Eggplant Functional - Lesson 6 (Japanese slides)
 
Eggplant Functional - Lesson 11 (Japanese slides)
Eggplant Functional - Lesson 11 (Japanese slides)Eggplant Functional - Lesson 11 (Japanese slides)
Eggplant Functional - Lesson 11 (Japanese slides)
 
Eggplant Functional - Lesson 7 (Japanese slides)
Eggplant Functional - Lesson 7 (Japanese slides)Eggplant Functional - Lesson 7 (Japanese slides)
Eggplant Functional - Lesson 7 (Japanese slides)
 
Eggplant Functional - Lesson 8 (Japanese slides)
Eggplant Functional - Lesson 8 (Japanese slides)Eggplant Functional - Lesson 8 (Japanese slides)
Eggplant Functional - Lesson 8 (Japanese slides)
 
Eggplant Functional - Lesson 9 (Japanese slides)
Eggplant Functional - Lesson 9 (Japanese slides)Eggplant Functional - Lesson 9 (Japanese slides)
Eggplant Functional - Lesson 9 (Japanese slides)
 
Eggplant AI - Lesson 5 Slides (Japanese)
Eggplant AI - Lesson 5 Slides (Japanese)Eggplant AI - Lesson 5 Slides (Japanese)
Eggplant AI - Lesson 5 Slides (Japanese)
 
Eggplant AI - Lesson 3 Slides (Japanese)
Eggplant AI - Lesson 3 Slides (Japanese)Eggplant AI - Lesson 3 Slides (Japanese)
Eggplant AI - Lesson 3 Slides (Japanese)
 
Eggplant AI - Lesson 6 Slides (Japanese)
Eggplant AI - Lesson 6 Slides (Japanese)Eggplant AI - Lesson 6 Slides (Japanese)
Eggplant AI - Lesson 6 Slides (Japanese)
 
Eggplant AI - Lesson 2 Slides (Japanese)
Eggplant AI - Lesson 2 Slides (Japanese)Eggplant AI - Lesson 2 Slides (Japanese)
Eggplant AI - Lesson 2 Slides (Japanese)
 
Eggplant AI - Lesson 1 Slides (Japanese)
Eggplant AI - Lesson 1 Slides (Japanese)Eggplant AI - Lesson 1 Slides (Japanese)
Eggplant AI - Lesson 1 Slides (Japanese)
 
Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​
Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​
Strategy vs. Tactical Testing: Actions for Today, Plans for Tomorrow​
 
AI based Testing in Finance & Retail Breakfast Briefing
AI based Testing in Finance & Retail Breakfast BriefingAI based Testing in Finance & Retail Breakfast Briefing
AI based Testing in Finance & Retail Breakfast Briefing
 
6 Top Tips to a Testing Strategy That Works
6 Top Tips to a Testing Strategy That Works6 Top Tips to a Testing Strategy That Works
6 Top Tips to a Testing Strategy That Works
 
Importance of testing for the business
Importance of testing for the businessImportance of testing for the business
Importance of testing for the business
 
Shift Up
Shift Up Shift Up
Shift Up
 
Test Automation Beyond Test Execution
Test Automation Beyond Test ExecutionTest Automation Beyond Test Execution
Test Automation Beyond Test Execution
 
Automation As An Ally
Automation As An AllyAutomation As An Ally
Automation As An Ally
 

Recently uploaded

TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案sugiuralab
 
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?akihisamiyanaga1
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...博三 太田
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfFumieNakayama
 
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineerYuki Kikuchi
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfFumieNakayama
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)Hiroshi Tomioka
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NTT DATA Technology & Innovation
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)UEHARA, Tetsutaro
 

Recently uploaded (9)

TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
 
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
 
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
 

Eggplant Functional - Lesson 5 (Japanese slides)

  • 2. A Note about File Interactions • Eggplant Functionalは、Eggplantが実行されているマシンのファイルに対して多くの操作を実行できる。 しかし、VNCプロトコルの制限により、SUTにあるファイルを直接操作するコマンドはありません。 • 上記制限の例外は、SUTのドライブを共有してEggplantマシンにマウントでき、 ローカルファイルシステムからそのコンテンツにアクセスできる場合である。 © Copyright 2019 Eggplant
  • 3. Where to Store the File • スイート内のリソースフォルダ • 外部のファイル保管先を指定 © Copyright 2019 Eggplant
  • 4. Reading Text/CSV files • SenseTalkスクリプト言語を使用すると、ファイルから簡単に読込むことが できる。 ファイルハンドルを作成したり、ファイルを明示的に開いたりする必 要はありません。 put file "/path/to/someFile.txt“ // reads and outputs the file contents • ファイル内容の繰り返し処理も容易に実現: repeat with each line of file "/path/to/someFile.txt" // reads each line in turn put it // outputs the current line end repeat © Copyright 2019 Eggplant
  • 5. Reading Text/CSV Files (Continued) • ラインを繰返し読込み処理する場合、特定のファイルに簡単にアクセスできる。 カンマがデフォルトの区切り文字である。: repeat with each line of file "/path/to/someFile.txt" // reads each line in turn click item 1 of it // clicks the first item of the current line typetext item 3 of it // types the third item of the current line end repeat © Copyright 2019 Eggplant
  • 8. Writing to a Data File • SenseTalkは書込みプロセスを簡単にする。 次のコマンドは、指定したファイルにデータを追加する。 ファイルが存在しない場合は作成される。 put myVar after file “/path/to/someFile.txt" • データ付加方法: put myVar before file “/path/to/someFile.txt" • データ挿入方法: insert myVar after line 5 of file "/path/to/someFile.txt" © Copyright 2019 Eggplant
  • 10. Using Excel Files: Command Examples • SenseTalkは、Microsoft Excel(.xlsx)形式で保存されたデータにアクセス可能である。 • Excelファイルをサポートするために、SenseTalkの次のコマンドを実行する。: • ワークブック関数 • ワークシート関数 © Copyright 2019 Eggplant
  • 11. Using Excel Files: Command Examples (Cont.) • セル関数 • セル範囲関数 • and much more… © Copyright 2019 Eggplant
  • 12. Database Connections • Eggplant Functionalは、ODBC接続機能を使用して、さまざまなデータベースの読み取りと書 き込みを行うことができる。 ODBCデータソースの設定方法を正確に説明することは、このトレーニ ングの範囲外である。 • Eggplant Functionalは64ビットアプリケーションであるため、ODBCデータソースを設定するとき は64ビットODBCドライバーを使用する必要がある。 • データベースと対話するための2つのオプションがある。 SQLに慣れていない場合は、組み込みの SenseTalkコマンドを使用するか、またはExecuteSQLコマンドを使用することができる。 © Copyright 2019 Eggplant
  • 13. Connecting to a Database • Eggplant Functionalでデータベースに接続するには、ODBCデータソースが機能 している必要がある。 • 接続するときは、データソース名 及び 接続に必要な資格情報を指定する。 set myDB to (type:"odbc", DSN:"DataSource1", user:"root", password:"ygh$r3") • 次に、操作するテーブル指定を設定する。 set memberTable to table “Members” of myDB © Copyright 2019 Eggplant
  • 14. Reading Database Records • 一般的なSQLクエリオプションに基づいて、テーブルのすべてのレコードまたはレコード のセットにアクセスできる。 put the records of memberTable into members get the records of memberTable where lastName is "Smith" get records of memberTable where lastName begins with "S" and lastName isn't "Smith" • 注:大きなテーブルからすべてのレコードをプルすると、Eggplant機能の速度低下 やメモリの問題が発生する。 © Copyright 2019 Eggplant
  • 15. More about Records • レコードは、取得元のデータベースへの参照を含むオブジェクトである。 この関係により、データベースを明示的に参照せずにレコードの内容を更新できる。 add 30 days to member's expirationDate -- this will update the database automatically • レコードを手動で更新する場合は、この自動更新機能をオフにすることができる。 • レコードを追加または削除することもできる。 set newMember to (firstName:"Fritz", lastName:"Geisler", memberNumber:4307) add record newMember to myTable delete record someRecord © Copyright 2019 Eggplant
  • 16. Using a Record Iterator • レコードのセットをテーブルからリストとして取り込む代わりに、一度に1つのレコードの セットを反復処理する「 Record Iterator 」を取得することができる。 set memberIterator to iterate over the records of memberTable • Iteratorの”nextValue”プロパティを使用して次のレコードを取得できる。 put memberIterator’s nextValue into currentMember • このアプローチにより、レコードアプリの不可抗力問題が回避される。 © Copyright 2019 Eggplant
  • 18. 演習: Using External Data 使用するもの: • 以下を使用する。: responsive_form.html • 以下を使用する。: ResponsiveList.csv (download link below) Password: eggplant https://testplant.egnyte.com/dl/tAtjhVkD88 © Copyright 2019 Eggplant
  • 19. 演習: Using External Data • Chromeを開き、 以下にアクセスする。 Exercise 5 in bookmark あるいは responsive_form.html • データファイルを使用して、フォームに入力する。 • ファイルを変数に設定する。 - 変数から読み取る方法を理解する。 • 必要に応じて画像/テキストをキャプチャし、ホットスポットを調整する。 • すべてのデータをシートに配置するには、1回の繰り返しループが必要である。 • 最後のデータセットは、色が緑であり、色の選択にリストされていないため失敗する。 色が利用可能かどう かをチェックし、そうでない場合はエラーを記録するifステートメントを記述する。 © Copyright 2019 Eggplant

Editor's Notes

  1. NOTES FOR PRESENTER -- Show a live demo later about interacting with txt/csv files
  2. - The presenter should just briefly go through the basic 2 slides, and give a live demo of working with an excel file.
  3. NOTES FOR PRESENTER -- Please go into more detail about this section if they need to connect their databases with eggPlant