提交 a8842096 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

plugin communication sample

上级 71307e37
package main
import (
"fmt"
httpUtils "github.com/easysoft/zentaoatf/pkg/lib/http"
constTestHelper "github.com/easysoft/zentaoatf/test/helper/conf"
"github.com/ozontech/allure-go/pkg/framework/provider"
"github.com/ozontech/allure-go/pkg/framework/suite"
"testing"
......@@ -19,7 +22,10 @@ func (s *ProductApiSuite) BeforeEach(t provider.T) {
t.AddSubSuite("ProductApi")
}
func (s *ProductApiSuite) TestProductApiTest(t provider.T) {
func (s *ProductApiSuite) TestProductApi(t provider.T) {
url := fmt.Sprintf("http://127.0.0.1:%d/api.php/v1/products", constTestHelper.ZentaoPort)
httpUtils.Get(url)
t.WithNewStep("My Second Step!", func(sCtx provider.StepCtx) {
sCtx.NewStep("My First SubStep!")
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册