func (G *global_data) AddFile(filename string) *global_data {
	file, err := os.Open(filename)
	if err != nil {
		G.AddError("Global", err.Error())
		fmt.Println("Error adding file to global")
	} else {
		fileField := request.FileField{"file", filename, file}
		G.Req.Files = append(G.Req.Files, fileField)
	}
	return G
}
Add a file to the Gorm data for the coming request
package frisby
import (
	"errors"
	"fmt"
	"net/http"
	"os"
	"github.com/mozillazg/request"
)
type global_data struct {
	Req  *request.Request
	Errs map[string][]error
	NumRequest int
	NumAsserts int
	NumErrored int
	PrintProgressName bool
	PrintProgressDot  bool
	PathSeparator string
}
const DefaultPathSeparator = "."
func init() {
	Global.Req = request.NewRequest(new(http.Client))
	Global.Errs = make(map[string][]error, 0)
	Global.PrintProgressDot = true
	Global.PathSeparator = DefaultPathSeparator
}
func (G *global_data) BasicAuth(user, passwd string) *global_data {
	G.Req.BasicAuth = request.BasicAuth{user, passwd}
	return G
}
func (G *global_data) SetProxy(url string) *global_data {
	G.Req.Proxy = url
	return G
}
func (G *global_data) SetHeader(key, value string) *global_data {
	if G.Req.Headers == nil {
		G.Req.Headers = make(map[string]string)
	}
	G.Req.Headers[key] = value
	return G
}
func (G *global_data) SetHeaders(headers map[string]string) *global_data {
	if G.Req.Headers == nil {
		G.Req.Headers = make(map[string]string)
	}
	for key, value := range headers {
		G.Req.Headers[key] = value
	}
	return G
}
func (G *global_data) SetCookie(key, value string) *global_data {
	if G.Req.Cookies == nil {
		G.Req.Cookies = make(map[string]string)
	}
	G.Req.Cookies[key] = value
	return G
}
func (G *global_data) SetCookies(cookies map[string]string) *global_data {
	if G.Req.Cookies == nil {
		G.Req.Cookies = make(map[string]string)
	}
	for key, value := range cookies {
		G.Req.Cookies[key] = value
	}
	return G
}
func (G *global_data) SetData(key, value string) *global_data {
	if G.Req.Data == nil {
		G.Req.Data = make(map[string]string)
	}
	G.Req.Data[key] = value
	return G
}
func (G *global_data) SetDatas(datas map[string]string) *global_data {
	if G.Req.Data == nil {
		G.Req.Data = make(map[string]string)
	}
	for key, value := range datas {
		G.Req.Data[key] = value
	}
	return G
}
func (G *global_data) SetParam(key, value string) *global_data {
	if G.Req.Params == nil {
		G.Req.Params = make(map[string]string)
	}
	G.Req.Params[key] = value
	return G
}
func (G *global_data) SetParams(params map[string]string) *global_data {
	if G.Req.Params == nil {
		G.Req.Params = make(map[string]string)
	}
	for key, value := range params {
		G.Req.Params[key] = value
	}
	return G
}
func (G *global_data) SetJson(json interface{}) *global_data {
	G.Req.Json = json
	return G
}