Class: CukeParser::CukeModel::CukeSuite

Inherits:
Object
  • Object
show all
Defined in:
lib/cuke_model/suite.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date, time, runstamp, branch_build_tag, branch_number, os, url, browser) ⇒ CukeSuite

Returns a new instance of CukeSuite.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/cuke_model/suite.rb', line 7

def initialize(date, time, runstamp, branch_build_tag, branch_number, os, url, browser)
	@date = date
	@time = time
	@runstamp = runstamp
	@duration = 0
	@converted_duration = 0
	@features = []
	@browser = browser
	@os = os
	@branch_number = branch_number
	@branch_build_tag = branch_build_tag
	@url = url
	@status = "" 
end

Instance Attribute Details

#branch_build_tagObject (readonly)

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def branch_build_tag
  @branch_build_tag
end

#branch_numberObject (readonly)

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def branch_number
  @branch_number
end

#browserObject (readonly)

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def browser
  @browser
end

#converted_durationObject

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def converted_duration
  @converted_duration
end

#dateObject

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def date
  @date
end

#durationObject

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def duration
  @duration
end

#featuresObject

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def features
  @features
end

#osObject (readonly)

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def os
  @os
end

#runstampObject (readonly)

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def runstamp
  @runstamp
end

#statusObject

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def status
  @status
end

#timeObject

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def time
  @time
end

#urlObject (readonly)

this will store all the elements for a specific feature



5
6
7
# File 'lib/cuke_model/suite.rb', line 5

def url
  @url
end

Instance Method Details

#getFullNameObject



31
32
33
34
35
# File 'lib/cuke_model/suite.rb', line 31

def getFullName
	#returns keyword + name
	fullName = @date + "_" + @time
	return fullName
end

#to_csvObject



22
23
24
25
# File 'lib/cuke_model/suite.rb', line 22

def to_csv
	#prints pretty csv format
	"#@date,#@time,#@duration,#@converted_duration,#@browser,#@os,#@branch_number,#@branch_build_tag,#@url,#@status"
end

#to_csv_prettyObject



27
28
29
# File 'lib/cuke_model/suite.rb', line 27

def to_csv_pretty
	return self.to_csv
end