-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplayResults.rb
48 lines (41 loc) · 1.32 KB
/
displayResults.rb
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
require 'mechanize'
require 'rubygems'
require 'uri'
class DisplayResults
# Creates the arrays that are needed to hold the links
def self.displayInputs(links)
puts "\n##########################################################################"
puts "\tInputs via Links:"
puts "##########################################################################"
links.each do |key, value|
puts "Base URL : #{key}"
puts "Possible Inputs:"
value.each do |input|
puts input
end
end
end
#
def self.displayForms(forms)
puts "\n##########################################################################"
puts "\tInputs via Forms:"
puts "##########################################################################"
forms.each do |key, value|
puts "Page URL: #{key.to_s}"
value.each do |input|
puts "\t Name: %s - Value: %s \t\tType: %s" %[input.name, input.value, input.type]
end
end
end
#
def self.displayCookies(cookies)
puts "\n##########################################################################"
puts "\tInputs via Cookies:"
puts "##########################################################################"
cookies.each do |cookie|
puts "Name: %s \tDomain Name: %s \tValue = %s" %[cookie.name, cookie.domain, cookie.value]
end
end
def self.displayTestResults()
end
end