Skip to content

Commit 36da705

Browse files
authored
Big List Of Naught Strings in accpetance tests (#1195)
Fixes #1086
1 parent 3a860ed commit 36da705

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*** Setting ***
2+
Resource resource.robot
3+
Library BigListOfNaughtyStrings.BigListOfNaughtyStrings WITH NAME blns
4+
5+
*** Test Cases ***
6+
Big List Of Naughty Strings
7+
[Documentation] The Big List of Naughty Strings is originally copied from:
8+
... https://github.com/minimaxir/big-list-of-naughty-strings
9+
Open Browser To Start Page
10+
${blns} = blns.Get Blns
11+
:FOR ${string} IN @{blns}
12+
\ Check Blns Error Check ${string}
13+
14+
15+
*** Keywords ***
16+
Check Blns Error Check
17+
[Arguments] ${string}
18+
Run Keyword And Expect Error
19+
... Page should have contained element*
20+
... Page Should Contain Element ${string}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import json
2+
import os
3+
4+
5+
class BigListOfNaughtyStrings(object):
6+
"""The Big List of Naughty Strings is originally copied from here:
7+
https://github.com/minimaxir/big-list-of-naughty-strings
8+
"""
9+
10+
def get_blns(self):
11+
cur_dir = os.path.dirname(os.path.abspath(__file__))
12+
blns = open(os.path.join(cur_dir, 'blns.json'), 'r')
13+
return json.load(blns)

atest/resources/testlibs/blns.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[
2+
"\\\\",
3+
"$1.00",
4+
"-1E+02",
5+
"-9223372036854775808/-1",
6+
"--1",
7+
"-",
8+
"999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999",
9+
"-1#IND",
10+
"0xabad1dea",
11+
"2.2250738585072011e-308",
12+
",./;'[]\\-=",
13+
"<>?:\"{}|_+",
14+
"!@#$%^&*()`~",
15+
"\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f",
16+
"€‚ƒ„†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ",
17+
"\t\u000b\f …             ​

   ",
18+
"­؀؁؂؃؄؅؜۝܏᠎​‌‍‎‏‪‫‬‭‮⁠⁡⁢⁣⁤⁦⁧⁨⁩𑂽𛲠𛲡𛲢𛲣𝅳𝅴𝅵𝅶𝅷𝅸𝅹𝅺󠀁󠀠󠀡󠀢󠀣󠀤󠀥󠀦󠀧󠀨󠀩󠀪󠀫󠀬󠀭󠀮󠀯󠀰󠀱󠀲󠀳󠀴󠀵󠀶󠀷󠀸󠀹󠀺󠀻󠀼󠀽󠀾󠀿󠁀󠁁󠁂󠁃󠁄󠁅󠁆󠁇󠁈󠁉󠁊󠁋󠁌󠁍󠁎󠁏󠁐󠁑󠁒󠁓󠁔󠁕󠁖󠁗󠁘󠁙󠁚󠁛󠁜󠁝󠁞󠁟󠁠󠁡󠁢󠁣󠁤󠁥󠁦󠁧󠁨󠁩󠁪󠁫󠁬󠁭󠁮󠁯󠁰󠁱󠁲󠁳󠁴󠁵󠁶󠁷󠁸󠁹󠁺󠁻󠁼󠁽󠁾󠁿",
19+
"ЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя",
20+
"٠١٢٣٤٥٦٧٨٩",
21+
"⁰⁴⁵",
22+
"ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็ ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็ ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็",
23+
"\"'\"'\"''''\"",
24+
"田中さんにあげて下さい",
25+
"𠜎𠜱𠝹𠱓𠱸𠲖𠳏",
26+
"Ⱥ",
27+
"(。◕ ∀ ◕。)",
28+
"🚾 🆒 🆓 🆕 🆖 🆗 🆙 🏧",
29+
"0️⃣ 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣ 9️⃣ 🔟",
30+
"🇺🇸🇷🇺🇸 🇦🇫🇦🇲🇸",
31+
"בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ",
32+
"",
33+
"مُنَاقَشَةُ سُبُلِ اِسْتِخْدَامِ اللُّغَةِ فِي النُّظُمِ الْقَائِمَةِ وَفِيم يَخُصَّ التَّطْبِيقَاتُ الْحاسُوبِيَّةُ، ",
34+
"⁦test⁧",
35+
"̦H̬̤̗̤͝e͜ ̜̥̝̻͍̟́w̕h̖̯͓o̝͙̖͎̱̮ ҉̺̙̞̟͈W̷̼̭a̺̪͍į͈͕̭͙̯̜t̶̼̮s̘͙͖̕ ̠̫̠B̻͍͙͉̳ͅe̵h̵̬͇̫͙i̹͓̳̳̮͎̫̕n͟d̴̪̜̖ ̰͉̩͇͙̲͞ͅT͖̼͓̪͢h͏͓̮̻e̬̝̟ͅ ̤̹̝W͙̞̝͔͇͝ͅa͏͓͔̹̼̣l̴͔̰̤̟͔ḽ̫.͕",
36+
"Z̮̞̠͙͔ͅḀ̗̞͈̻̗Ḷ͙͎̯̹̞͓G̻O̭̗̮",
37+
"˙ɐnbᴉlɐ ɐuƃɐɯ ǝɹolop ʇǝ ǝɹoqɐl ʇn ʇunpᴉpᴉɔuᴉ ɹodɯǝʇ poɯsnᴉǝ op pǝs 'ʇᴉlǝ ƃuᴉɔsᴉdᴉpɐ ɹnʇǝʇɔǝsuoɔ 'ʇǝɯɐ ʇᴉs ɹolop ɯnsdᴉ ɯǝɹo˥",
38+
"00˙Ɩ$-",
39+
"⒯⒣⒠ ⒬⒰⒤⒞⒦ ⒝⒭⒪⒲⒩ ⒡⒪⒳ ⒥⒰⒨⒫⒮ ⒪⒱⒠⒭ ⒯⒣⒠ ⒧⒜⒵⒴ ⒟⒪⒢",
40+
"<script>alert(123)</script>",
41+
"http://a/%%30%30",
42+
"</textarea><script>alert(123)</script>",
43+
" ",
44+
"%",
45+
"_",
46+
"$(touch /tmp/blns.fail)",
47+
"%s%s%s%s%s",
48+
"{0}",
49+
"%*.*s",
50+
"%n",
51+
"File:///",
52+
"../../../../../../../../../../../etc/hosts",
53+
"() { 0; }; touch /tmp/blns.shellshock1.fail;",
54+
"() { _; } >_[$($())] { touch /tmp/blns.shellshock2.fail; }",
55+
"<<< %s(un='%s') = %u",
56+
"+++ATH0",
57+
"http://www.cum.qc.ca/",
58+
"Roses are \u001b[0;31mred\u001b[0m, violets are \u001b[0;34mblue. Hope you enjoy terminal hue",
59+
"Powerلُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ冗",
60+
"జ్ఞ‌ా"
61+
]

0 commit comments

Comments
 (0)