Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 185 lines (140 sloc) 4.86 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
#!/usr/bin/env ruby
# auto-generated tuitest script
require 'tuitest'

Tuitest.init
verifier = Tuitest::Verifier.new("test-itemlist.rb.log", "RESULT-test-itemlist.rb.xml")

Kernel.system("rm -f cache cache.lock")

if ENV["OFFLINE"] then
Tuitest.run("../newsbeuter -c cache -C /dev/null -u urls-tuitest1-offline")
else
Tuitest.run("../newsbeuter -c cache -C /dev/null -u urls-tuitest1")
end


Tuitest.wait_until_idle
Tuitest.keypress("r"[0])
Tuitest.keypress(10)
Tuitest.keypress(":"[0])
Tuitest.keypress("s"[0])
Tuitest.keypress("e"[0])
Tuitest.keypress("t"[0])
Tuitest.keypress(" "[0])
Tuitest.keypress("b"[0])
Tuitest.keypress("r"[0])
Tuitest.keypress("o"[0])
Tuitest.keypress("w"[0])
Tuitest.keypress("s"[0])
Tuitest.keypress("e"[0])
Tuitest.keypress("r"[0])
Tuitest.keypress("="[0])
Tuitest.keypress("t"[0])
Tuitest.keypress("r"[0])
Tuitest.keypress("u"[0])
Tuitest.keypress("e"[0])
Tuitest.keypress(10)
Tuitest.keypress("o"[0])
Tuitest.keypress("u"[0])

Tuitest.wait_until_idle

# begin auto-generated verification #1
verifier.expect(24, 0, "URL list empty.")
# end auto-generated verification #1

Tuitest.keypress(258)
Tuitest.keypress("u"[0])
Tuitest.keypress(258)
Tuitest.keypress("u"[0])

Tuitest.wait_until_idle

# begin auto-generated verification #2
verifier.expect(0, 17, "URLs")
verifier.expect(1, 1, "1 http://slashdot.org/ ")
verifier.expect(2, 3, " ")
# end auto-generated verification #2

Tuitest.keypress("q"[0])
Tuitest.keypress(2)

Tuitest.wait_until_idle

# begin auto-generated verification #3
verifier.expect(0, 17, "Articles in feed 'RSS 2.0 testbed feed' (3 unread, 3 total)")
verifier.expect(1, 1, " 1 N Aug 30 212 RSS 2.0 Item 1")
verifier.expect(2, 3, "2 N Aug 29 67 RSS 2.0 Item 2")
verifier.expect(3, 3, "3 N Aug 28 170 RSS 2.0 Item 3")
verifier.expect(24, 0, "URL: http://testbed.newsbeuter.org/item3.html")
# end auto-generated verification #3

Tuitest.keypress(10)

Tuitest.wait_until_idle

# begin auto-generated verification #4
verifier.expect(24, 0, "Title: RSS 2.0 Item 3")
# end auto-generated verification #4

Tuitest.keypress(10)
Tuitest.keypress("t"[0])
Tuitest.keypress("e"[0])
Tuitest.keypress("s"[0])
Tuitest.keypress("t"[0])

Tuitest.wait_until_idle

# begin auto-generated verification #5
verifier.expect(24, 0, "Description: test ")
# end auto-generated verification #5

Tuitest.keypress(10)

Tuitest.wait_until_idle

# begin auto-generated verification #6
verifier.expect(24, 0, "Error while saving bookmark: bookmarking support is not configured. Please set t")
# end auto-generated verification #6

Tuitest.keypress(5)
Tuitest.keypress("a"[0])
Tuitest.keypress("b"[0])
Tuitest.keypress("c"[0])

Tuitest.wait_until_idle

# begin auto-generated verification #7
verifier.expect(24, 0, "Flags: abc ")
# end auto-generated verification #7

Tuitest.keypress(10)

Tuitest.wait_until_idle

# begin auto-generated verification #8
verifier.expect(3, 6, "!")
verifier.expect(24, 5, " updated.")
# end auto-generated verification #8

Tuitest.keypress("s"[0])

Tuitest.wait(1000)
Tuitest.wait_until_idle

# begin auto-generated verification #9
verifier.expect(0, 17, "Save File - ")
verifier.expect(23, 2, "Cancel ENTER:Save ")
verifier.expect(24, 0, " ")
# end auto-generated verification #9

Tuitest.keypress(259)
Tuitest.keypress("q"[0])

Tuitest.wait_until_idle

# begin auto-generated verification #10
verifier.expect(0, 17, "Articles in feed 'RSS 2.0 testbed feed' (3 unread, 3 total)")
verifier.expect(1, 0, " 1 N Aug 30 212 RSS 2.0 Item 1 ")
verifier.expect(2, 0, " 2 N Aug 29 67 RSS 2.0 Item 2 ")
verifier.expect(3, 0, " 3 N! Aug 28 170 RSS 2.0 Item 3 ")
verifier.expect(4, 0, " ")
verifier.expect(24, 0, "Aborted saving.")
# end auto-generated verification #10

Tuitest.keypress("?"[0])

Tuitest.wait_until_idle

# begin auto-generated verification #11
verifier.expect(0, 17, "Help")
# end auto-generated verification #11

Tuitest.keypress("q"[0])
Tuitest.keypress("n"[0])
Tuitest.keypress("n"[0])
Tuitest.keypress("n"[0])
Tuitest.keypress("p"[0])
Tuitest.keypress("p"[0])
Tuitest.keypress("p"[0])
Tuitest.keypress(16)
Tuitest.keypress("A"[0])
Tuitest.keypress(16)

Tuitest.wait_until_idle

# begin auto-generated verification #12
verifier.expect(0, 58, "0")
verifier.expect(1, 5, " ")
verifier.expect(2, 5, " ")
verifier.expect(3, 5, " ")
verifier.expect(24, 0, "No unread feeds.")
# end auto-generated verification #12

Tuitest.keypress("q"[0])
Tuitest.keypress("q"[0])

Tuitest.wait_until_idle

Tuitest.close
verifier.finish

Kernel.system("rm -f cache cache.lock")

# EOF
Something went wrong with that request. Please try again.