wetest

package module
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 4 Imported by: 0 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags added in v0.0.9

func AddFlags() map[string]string

Types

type Count added in v0.0.16

type Count struct {
	ReadParams []map[string]string //where
	Expected   ExpectedCount
}

type ExpectedCount added in v0.0.16

type ExpectedCount struct {
	UI         int //interfaz usuario
	DBFrontend int
	DBBackend  int
}

type TestAction added in v0.0.5

type TestAction struct {
	//Espera en milisegundos ej 200,2000 = 2 seg
	Wait int
	// setear la fecha del servidor a un dia especifico ej: 2023-12-24
	Set_backend_date string
	// setear la fecha en el fronted a un dia especifico ej: 2023-12-24
	Set_frontend_date string
	// objeto a usar para la acción
	Name_object_use string

	// Crear Objeto By Post use Data
	Object_Post_Create bool
	// Actualiza Objeto By Post use Data
	Object_Post_Update bool
	// Borrar Objeto By Post use Data
	Object_Post_Delete bool

	DB_Insert_Data_Table string
	DB_Delete_Data_Table string

	// click id de un objeto especifico
	Clicking_ID string // ej Click
	// click en el objeto por su nombre
	Clicking_object_name string
	// click en le menu del modulo
	Click_menu_module string
	// click en elementos del modulo del objeto ej: "button[name='btn_cancel']"
	Click_object_element string
	//Completar formulario
	Form_complete string
	// añadir data a la existente
	Form_existing_add string
	// borrar la data de tablas por su nombre
	Clear_all_table_data []string
	// contar cuantos elementos existen en: la vista, db cliente, db servidor
	Count *Count
	//data pare realizar la prueba
	Data []map[string]string
}

type UseCase added in v0.0.5

type UseCase struct {
	BackendExecute bool
	RunBeforeView  bool   // si se ejecuta antes de cargar la vista
	TestName       string //ej "session" = run params "test:session"
	Description    string
	TestActions    []TestAction
}

type WeTest added in v0.0.5

type WeTest struct {
	*model.Object

	TestAction
	// contains filtered or unexported fields
}

func AddBackendApiE2E added in v0.0.5

func AddBackendApiE2E(h *model.MainHandler, osArgs []string) (out *WeTest, err string)

ej: os.Args

func AddE2ETestHandler added in v0.0.5

func AddE2ETestHandler(log model.Logger) (t *WeTest, err string)

func (*WeTest) AddHandlersToWetest added in v0.0.9

func (w *WeTest) AddHandlersToWetest(h *model.MainHandler)

func (*WeTest) AddUsesCaseTest added in v0.0.5

func (h *WeTest) AddUsesCaseTest(uses_cases ...UseCase)

func (WeTest) Count_Elements added in v0.0.15

func (h WeTest) Count_Elements(this string, t TestAction, result func(err string))

func (WeTest) DB_Delete_Data_Table added in v0.0.30

func (h WeTest) DB_Delete_Data_Table(this string, t TestAction) (err string)

func (WeTest) DB_Insert_Data_Table added in v0.0.29

func (h WeTest) DB_Insert_Data_Table(this string, t TestAction) (err string)

func (*WeTest) ExecBackendActions added in v0.0.7

func (h *WeTest) ExecBackendActions() (err string)

func (*WeTest) ExecuteBeforeAction added in v0.0.9

func (t *WeTest) ExecuteBeforeAction(h *model.MainHandler)

func (WeTest) Object_Post_Create added in v0.0.29

func (h WeTest) Object_Post_Create(this string, t TestAction, result func(err string))

func (WeTest) Object_Post_Delete added in v0.0.30

func (h WeTest) Object_Post_Delete(this string, t TestAction, result func(err string))

func (WeTest) Object_Post_Update added in v0.0.30

func (h WeTest) Object_Post_Update(this string, t TestAction, result func(err string))

func (*WeTest) RunE2EfrontTestsAfterView added in v0.0.9

func (t *WeTest) RunE2EfrontTestsAfterView()

func (WeTest) SiMulateUserFormComplete added in v0.0.24

func (h WeTest) SiMulateUserFormComplete(t *TestAction, this string) (err string)

Jump to

Keyboard shortcuts

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