Last active
July 26, 2019 02:55
-
-
Save daisukenishino2/6834e851531efdfae978c5014f853c86 to your computer and use it in GitHub Desktop.
stackoverflow対策コードのテストケース(https://github.com/OpenTouryoProject/OpenTouryo/issues/341
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
-- DaoShippers_D1_Insert | |
INSERT INTO | |
[Shippers] | |
( | |
<DELCMA> | |
<INSCOL name="ShipperID">[ShipperID],</INSCOL> | |
<INSCOL name="CompanyName">[CompanyName],</INSCOL> | |
<INSCOL name="Phone">[Phone],</INSCOL> | |
</DELCMA> | |
) | |
VALUES | |
( | |
<DELCMA> | |
<IF>@ShipperID,</IF> | |
<IF>@CompanyName,</IF> | |
<IF>@Phone,</IF> | |
</DELCMA> | |
) | |
</ROOT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
-- DaoShippers_D2_Select | |
SELECT | |
[ShipperID], | |
[CompanyName], | |
[Phone] | |
FROM | |
[Shippers] | |
<WHERE> | |
WHERE | |
<IF>AND [ShipperID] = @ShipperID<ELSE>AND [ShipperID] IS NULL</ELSE></IF> | |
<IF>AND [ShipperID] LIKE @ShipperID_Like</IF> | |
<IF>AND [CompanyName] = @CompanyName<ELSE>AND [CompanyName] IS NULL</ELSE></IF> | |
<IF>AND [CompanyName] LIKE @CompanyName_Like</IF> | |
<IF>AND [Phone] = @Phone<ELSE>AND [Phone] IS NULL</ELSE></IF> | |
<IF>AND [Phone] LIKE @Phone_Like</IF> | |
</WHERE> | |
</ROOT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
SELECT | |
COUNT(*) | |
FROM | |
Shippers | |
</ROOT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
SELECT | |
COUNT(*) | |
FROM | |
Shippers | |
<IF name="p1"></IF> | |
... | |
<IF name="p500"></IF> | |
</ROOT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
SELECT | |
COUNT(*) | |
FROM | |
Shippers | |
<IF name="p1"></IF> | |
... | |
<IF name="p1000"></IF> | |
</ROOT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
SELECT | |
COUNT(*) | |
FROM | |
Shippers | |
<IF>p1</IF> | |
... | |
<IF>p500</IF> | |
</ROOT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
SELECT | |
COUNT(*) | |
FROM | |
Shippers | |
<IF>p1</IF> | |
... | |
<IF>p1000</IF> | |
</ROOT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
SELECT | |
COUNT(*) | |
FROM | |
Shippers | |
<DELCMA> | |
<INSCOL name="p1"></INSCOL> | |
... | |
<INSCOL name="p500"></INSCOL> | |
</DELCMA> | |
<DELCMA> | |
<IF name="p1"></INSCOL> | |
... | |
<IF name="p500"></INSCOL> | |
</DELCMA> | |
</ROOT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<ROOT> | |
SELECT | |
COUNT(*) | |
FROM | |
Shippers | |
<DELCMA> | |
<INSCOL name="p1"></INSCOL> | |
... | |
<INSCOL name="p1000"></INSCOL> | |
</DELCMA> | |
<DELCMA> | |
<IF name="p1"></IF> | |
... | |
<IF name="p500"></IF> | |
</DELCMA> | |
</ROOT> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
テストケース
WebFormsのサンプル・アプリからテスト
正常ケース
元ファイル
DaoShippers_D2_Select.xml
パラメタ:
[一覧取得(dt)]ボタンを押下。
DaoShippers_D1_Insert.xml
パラメタ:
[追加]ボタンを押下。
異常ケース
元ファイル
ShipperCount.xml
パラメタ:
[件数取得]ボタンを押下。
IFタグ
ShipperCount11.xml
IFタグ(タグ内パラメタ)のエラー
ShipperCount12.xml
IFタグ(タグ内パラメタ)のエラー
ShipperCount13.xml
IFタグ(テキスト内パラメタ)のエラー
ShipperCount14.xml
IFタグ(テキスト内パラメタ)のエラー
INSCOLタグ
ShipperCount21.xml
INSCOLタグ(テキスト内パラメタ)のエラー(stackoverflow)
ShipperCount22.xml
INSCOLタグ(テキスト内パラメタ)のエラー(上限)