display

package
v1.6.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

This file is part of SystemTestPortal. Copyright (C) 2017 Institute of Software Technology, University of Stuttgart

SystemTestPortal is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

SystemTestPortal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with SystemTestPortal. If not, see <http://www.gnu.org/licenses/>.

Package display contains the logic for showing the templates for entities of the system, e.g. case-edit, case-history, sequence-edit, sequence-history, projects, groups, ...

The requests routed to this package are typically GET-requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutGet

func AboutGet(w http.ResponseWriter, r *http.Request)

AboutGet is a handler for showing the about screen

func CaseProtocolsGet

func CaseProtocolsGet(protocolLister handler.CaseProtocolLister) http.HandlerFunc

CaseProtocolsGet serves the page displaying case protocols.

func CreateCaseGet

func CreateCaseGet(w http.ResponseWriter, r *http.Request)

CreateCaseGet simply serves the site that is used to create new testcases.

func CreateProjectGet

func CreateProjectGet(w http.ResponseWriter, r *http.Request)

CreateProjectGet is a handler for showing the screen for creating a new project

func CreateSequenceGet

func CreateSequenceGet(lister handler.TestCaseLister) http.HandlerFunc

CreateSequenceGet serves the page used to create a new testsequence.

func DashboardGet added in v1.1.0

func DashboardGet(caseProtocolLister handler.CaseProtocolLister, caseLister handler.TestCaseLister, sequenceProtocolLister handler.SequenceProtocolLister, sequenceLister handler.TestSequenceLister) http.HandlerFunc

DashboardGet supplies a handler to display the dashboard page

func EditCaseGet

func EditCaseGet(w http.ResponseWriter, r *http.Request)

EditCaseGet simply serves the edit page for editing testcases.

func EditSequenceGet

func EditSequenceGet(t handler.TestCaseLister) http.HandlerFunc

EditSequenceGet serves the page used to edit a testsequence.

func GetAsyncSettingsPermissionsNav added in v1.5.0

func GetAsyncSettingsPermissionsNav(writer http.ResponseWriter, request *http.Request)

func GetAsyncSettingsPermissionsTab added in v1.5.0

func GetAsyncSettingsPermissionsTab(writer http.ResponseWriter, request *http.Request)

func GetAsyncSettingsProjectsNav added in v1.5.0

func GetAsyncSettingsProjectsNav(writer http.ResponseWriter, request *http.Request)

func GetAsyncSettingsProjectsTab added in v1.5.0

func GetAsyncSettingsProjectsTab(writer http.ResponseWriter, request *http.Request)

func GetCaseProtocols added in v1.1.0

func GetCaseProtocols(project *project.Project, writer http.ResponseWriter, request *http.Request) []test.CaseExecutionProtocol

GetSequenceProtocols returns test case protocols of the project

func GetCases added in v1.1.0

func GetCases(caseLister handler.TestCaseLister, project *project.Project) []*test.Case

GetCases returns all cases of the project

func GetProject added in v1.1.0

func GetProject(ctxtEntities *handler.ContextEntities, writer http.ResponseWriter, request *http.Request) *project.Project

GetProject returns the current project

func GetProtocolMap added in v1.1.0

func GetProtocolMap(caseProtocolList []test.CaseExecutionProtocol, l handler.CaseProtocolLister) map[id.TestID][]test.CaseExecutionProtocol

GetProtocolMap returns a map of test id's and execution protocols

func GetProtocolMap_Sequences added in v1.2.0

func GetProtocolMap_Sequences(sequenceProtocolList []test.SequenceExecutionProtocol, l handler.SequenceProtocolLister) map[id.TestID][]test.SequenceExecutionProtocol

GetProtocolMap returns a map of test id's and execution protocols

func GetSequenceProtocols added in v1.2.0

func GetSequenceProtocols(project *project.Project, writer http.ResponseWriter, request *http.Request) []test.SequenceExecutionProtocol

GetSequenceProtocols returns test case protocols of the project

func GetSequences added in v1.2.0

func GetSequences(sequenceLister handler.TestSequenceLister, project *project.Project) []*test.Sequence

GetCases returns all cases of the project

func GetSettingsPermissions added in v1.5.0

func GetSettingsPermissions(writer http.ResponseWriter, request *http.Request)

GetSettingsPermissions is a handler for showing the permissions settings page

func GetSettingsProjects added in v1.5.0

func GetSettingsProjects(writer http.ResponseWriter, request *http.Request)

GetSettingsProjects is a handler for showing the project settings page

func HistoryCaseGet

func HistoryCaseGet(w http.ResponseWriter, r *http.Request)

HistoryCaseGet just serves the history page showing the history of a case.

func HistorySequenceGet

func HistorySequenceGet(w http.ResponseWriter, r *http.Request)

HistorySequenceGet serves the page showing the history of a sequence.

func ParseMarkdown added in v1.7.0

func ParseMarkdown(writer http.ResponseWriter, request *http.Request)

ParseMarkdown is a handler for parsing raw markdown to sanitized HTML

func RegisterUserGet

func RegisterUserGet(w http.ResponseWriter, r *http.Request)

RegisterUserGet is the handler that displays the registration site.

func Sanitize added in v1.7.0

func Sanitize(writer http.ResponseWriter, request *http.Request)

ParseMarkdown is a handler for parsing raw markdown to sanitized HTML

func SequenceProtocolsGet

func SequenceProtocolsGet(caseProtocolLister handler.CaseProtocolLister) http.HandlerFunc

SequenceProtocolsGet serves the page displaying testsequence protocols.

func ShowCase

func ShowCase(p *project.Project, tc *test.Case, c []*comment.Comment, w http.ResponseWriter, r *http.Request)

ShowCase tries to respond with the display page for a case. If an error occurs an error response is sent instead.

func ShowCaseGet

func ShowCaseGet(commentStore store.Comments) http.HandlerFunc

ShowCaseGet simply serves the page that displays a test case.

func ShowGroupGet

func ShowGroupGet(u handler.UserLister) http.HandlerFunc

ShowGroupGet is a handler for creating a group

func ShowSequence

func ShowSequence(p *project.Project, ts *test.Sequence, c []*comment.Comment, w http.ResponseWriter,
	r *http.Request)

ShowSequence tries to respond with the display page for a sequence if an error occurs an error response is sent instead.

func ShowSequenceGet

func ShowSequenceGet(commentStore store.Comments) http.HandlerFunc

ShowSequenceGet serves the page showing a sequence.

func SystemSettingsGet added in v1.7.0

func SystemSettingsGet(w http.ResponseWriter, r *http.Request)

SystemSettingsGet is the handler that displays the SystemSettings site.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL