Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 任务初始化变量维护 #489

Open
4 tasks done
awayme opened this issue Dec 8, 2023 · 1 comment
Open
4 tasks done

[Feature] 任务初始化变量维护 #489

awayme opened this issue Dec 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@awayme
Copy link

awayme commented Dec 8, 2023

Verify steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Need 当前 QD 框架并不包含该功能特性或者还不完善
  • Framework 这是 QD 框架应包含的特性,并非模板特性
  • Meaningful 我提交的不是无意义的 催促更新或修复 请求

Describe the Feature

准确的说这不是一个feature的要求,可能是我对框架变量维护的理解不到位,但我已经翻遍了所有的文档和google了相关关键字,并没有发现明确的描述。

由于没有找到文档描述,首先我希望确认下对任务初始化变量的逻辑的理解是正确的:一个模板里所有请求在'测试/test'页面里定义的变量将出现在创建任务的对话框里,除非这个同名的变量在之前的请求里通过变量提取功能里创建的。

如果我的理解是正确的,那目前发现有个问题:根据模板创建任务,要求填入典型的用户名,密码的初始化变量外,还被要求填写一个模板里特别后期才从页面正则获取的变量,p_level。在模板修改页面,第一个请求编辑页面里,确实可以看到这个变量,于是将其删除后保存模板,再次编辑模板,第一个请求到变量提取定义这个p_level的之前的所有请求都确保没有了这个p_level的手工定义。创建任务,依然提示要求填写p_level,这时候再回去编辑模板,第一个请求里又出现了这个变量的定义。重复前面步骤,删除保存,再次打开模板编辑确认变量没有预先定义,但再次创建任务就又出现了。同时,保存模板前和保存模板后我用导出功能导出了har,对比后都没有这个p_level的预先定义

Describe the solution

或许可以有一个地方明确的定义初始化的变量,请求过程中可以重新定义来“重载”,这样也方便一些需要登录模板的调试

Describe alternatives

No response

Additional context

No response

@awayme awayme added the enhancement New feature or request label Dec 8, 2023
@a76yyyy
Copy link
Contributor

a76yyyy commented Jan 21, 2024

请提供一个har用于测试,有截图的话就更好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants