Giter VIP home page Giter VIP logo

Comments (8)

debugtalk avatar debugtalk commented on May 18, 2024

@yileye 能先将格式调整为markdown么?这样实在是没法看清你的用例。

from httprunner.

yileye avatar yileye commented on May 18, 2024

@debugtalk 格式已经调整

from httprunner.

debugtalk avatar debugtalk commented on May 18, 2024

@yileye 我看了下你写的用例,总的来说没有啥问题,可能在第一个接口中,headers中的Content-Type与实际不一致;因为如果你传的是json而非data,那么Content-Type应该只能是application/json

另外,推荐在调试用例的时候打开抓包工具,方便看到你执行脚本时实际的请求和响应,然后再跟抓包得到的请求进行对比,基本上就能发现差异了。

from httprunner.

yileye avatar yileye commented on May 18, 2024

@debugtalk 嗯,可能是我还没有了解清楚脚本的结构,不太熟悉,我想实现的一个功能就是想再后续的请求中重用第一步登录的token,这个在脚本中应该如何使用?因为我后面的脚本在请求时都会验证是否在登录状态,所以会需要登录接口的Session

from httprunner.

debugtalk avatar debugtalk commented on May 18, 2024

@yileye 这块儿的说明已经挺多了。
你可以看下 issue #3 ;同时,QuickStart 里面的例子也完全满足你的要求。

from httprunner.

yileye avatar yileye commented on May 18, 2024

@debugtalk 好的,我先看看文档吧,我刚才找到了关于我刚才提到的问题的代码实现方式,和我之前实现的一样,应该是可以满足我的要求的

from httprunner.

yileye avatar yileye commented on May 18, 2024

@debugtalk 看了你的代码后收获很多,构思相当巧妙,之后如果有机会希望能为这个框架贡献一些代码,使框架更为健壮

from httprunner.

debugtalk avatar debugtalk commented on May 18, 2024

@yileye 十分欢迎!

from httprunner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.