# 步骤组 步骤组主要用于将一些逻辑上相关的步骤(比如用于完成某个小的功能模块)组合在一起,从而可以折叠、整体禁用、整体拖放调整位置。 
也可用于使用实现使用多线程同步方式执行内部的步骤。
![image.png](https://cdn.nlark.com/yuque/0/2024/png/272392/1711504780506-559b0093-0786-4471-93fb-07c1a5b520c4.png#averageHue=%23fbfbfb&clientId=ue37c2de1-0ce5-4&from=paste&height=615&id=u949e9561&originHeight=922&originWidth=1275&originalType=binary&ratio=1.5&rotation=0&showTitle=false&size=68350&status=done&style=none&taskId=ubdc56685-0a75-4c7a-8219-92876fd59ef&title=&width=850) 动画演示: [![步骤组.mp4 (126.04KB)](https://cdn.nlark.com/yuque/0/2019/jpeg/272392/1554209291320-66aa69e4-3746-445f-b353-f6e72889dd24.jpeg?x-oss-process=image/resize,h_450)](https://www.yuque.com/quicker/help/group?_lake_card=%7B%22status%22%3A%22done%22%2C%22name%22%3A%22%E6%AD%A5%E9%AA%A4%E7%BB%84.mp4%22%2C%22size%22%3A129066%2C%22taskId%22%3Anull%2C%22taskType%22%3A%22%22%2C%22url%22%3Anull%2C%22cover%22%3Anull%2C%22videoId%22%3A%2284ff3be903324207bfa68c2ea584c006%22%2C%22download%22%3Afalse%2C%22percent%22%3A0%2C%22coverUrl%22%3A%22https%3A%2F%2Fcdn.nlark.com%2Fyuque%2F0%2F2019%2Fjpeg%2F272392%2F1554209291320-66aa69e4-3746-445f-b353-f6e72889dd24.jpeg%22%2C%22aliyunVideoSrc%22%3Anull%2C%22taobaoVideoId%22%3A%22222703575615%22%2C%22uploaderId%22%3A272392%2C%22authKey%22%3A%22YXBwX2tleT04MDAwMDAwMTImYXV0aF9pbmZvPXsidGltZXN0YW1wRW5jcnlwdGVkIjoiNjE5MDAzY2YzZjYzMjg3ZDkyYzM2MDUxYTQyZDAxMmUifSZkdXJhdGlvbj0mdGltZXN0YW1wPTE1NjMzMjUyODE%3D%22%2C%22docUrl%22%3A%22https%3A%2F%2Fwww.yuque.com%2Fquicker%2Fhelp%2Fgroup%22%2C%22id%22%3A%22ooGMW%22%2C%22card%22%3A%22video%22%7D#ooGMW) # 参数 【忽略错误】内部模块有错误(包含使用了停止动作模块),都不影响此步骤组下面的后续模块的运行。 【使用多线程】(通常不要使用)(1.7.4版本提供)使用多线程方式同步运行步骤组中的子模块步骤。
![](https://cdn.nlark.com/yuque/0/2020/png/272392/1589530090375-115be2d3-970e-49bb-a9da-84d0ab94412e.png#averageHue=%23f8f4f4&height=151&id=ZyCiI&originHeight=303&originWidth=759&originalType=binary&ratio=1&rotation=0&showTitle=false&size=0&status=done&style=none&title=&width=379)
这些步骤应该是独立的没有相互关系的操作。
如果子模块是步骤组/如果等,他们内部的下一级子步骤将会顺序执行。 【调试运行时不输出调试内容】忽略对内部步骤的调试输出。 【多线程使用WaitAny模式】使用多线程时,内部任意一个线程完成,即向后继续执行。 此时其它未完成的步骤仍然会继续执行,但是不会被等待。 ## 多线程功能提示 - 警告!在多线程运行的代码中更新相同的变量可能会产生冲突。 - 为避免log格式混乱,同步执行时调试运行log会被关闭。 - 一些跳转处理将会失效(如停止动作/停止循环等,具体需测试)。 - 可能存在其他潜在问题,请多测试动作。 - 参考示例:[多线程测试(需1.7.4版本)](https://getquicker.net/sharedaction?code=1aefbbd1-cca2-42e6-c4e0-08d7f7cf8b53) # 操作 ## 创建步骤组 从工具箱中拖入步骤组到合适的位置,然后将需要的其他模块拖入其中即可。 [![添加步骤组.mp4 (368.01KB)](https://cdn.nlark.com/yuque/0/2019/jpeg/272392/1554209615121-3f7e6cba-d3cc-4d6c-9f5b-f516ba698ce5.jpeg?x-oss-process=image/resize,h_450)](https://www.yuque.com/quicker/help/group?_lake_card=%7B%22status%22%3A%22done%22%2C%22name%22%3A%22%E6%B7%BB%E5%8A%A0%E6%AD%A5%E9%AA%A4%E7%BB%84.mp4%22%2C%22size%22%3A376840%2C%22taskId%22%3Anull%2C%22taskType%22%3A%22%22%2C%22url%22%3Anull%2C%22cover%22%3Anull%2C%22videoId%22%3A%224d961b721ec544a38bea745d60b8c382%22%2C%22download%22%3Afalse%2C%22percent%22%3A0%2C%22coverUrl%22%3A%22https%3A%2F%2Fcdn.nlark.com%2Fyuque%2F0%2F2019%2Fjpeg%2F272392%2F1554209615121-3f7e6cba-d3cc-4d6c-9f5b-f516ba698ce5.jpeg%22%2C%22aliyunVideoSrc%22%3Anull%2C%22taobaoVideoId%22%3A%22222704303536%22%2C%22uploaderId%22%3A272392%2C%22authKey%22%3A%22YXBwX2tleT04MDAwMDAwMTImYXV0aF9pbmZvPXsidGltZXN0YW1wRW5jcnlwdGVkIjoiZmI3YWVkZmNjODA2MDlkZmFhMDc5YWNjOGVkMzQ4YTYifSZkdXJhdGlvbj0mdGltZXN0YW1wPTE1NjMzMjQ3MDA%3D%22%2C%22docUrl%22%3A%22https%3A%2F%2Fwww.yuque.com%2Fquicker%2Fhelp%2Fgroup%22%2C%22id%22%3A%224nvjp%22%2C%22card%22%3A%22video%22%7D#4nvjp) ## 将已有的模块放入步骤组 按Shift键后,点击要加入步骤组的模块列表的第一个和最后一个,选中这些步骤,然后点右键选择“加入步骤组”即可。 [![已有模块加入步骤组.mp4 (155.14KB)](https://cdn.nlark.com/yuque/0/2019/jpeg/272392/1554209468401-e5bab479-053a-4a80-9a65-419a9349853a.jpeg?x-oss-process=image/resize,h_450)](https://www.yuque.com/quicker/help/group?_lake_card=%7B%22status%22%3A%22done%22%2C%22name%22%3A%22%E5%B7%B2%E6%9C%89%E6%A8%A1%E5%9D%97%E5%8A%A0%E5%85%A5%E6%AD%A5%E9%AA%A4%E7%BB%84.mp4%22%2C%22size%22%3A158863%2C%22taskId%22%3Anull%2C%22taskType%22%3A%22%22%2C%22url%22%3Anull%2C%22cover%22%3Anull%2C%22videoId%22%3A%22cb8ee743620546f5a75999c882565e4c%22%2C%22download%22%3Afalse%2C%22percent%22%3A0%2C%22coverUrl%22%3A%22https%3A%2F%2Fcdn.nlark.com%2Fyuque%2F0%2F2019%2Fjpeg%2F272392%2F1554209468401-e5bab479-053a-4a80-9a65-419a9349853a.jpeg%22%2C%22aliyunVideoSrc%22%3Anull%2C%22taobaoVideoId%22%3A%22222579649385%22%2C%22uploaderId%22%3A272392%2C%22authKey%22%3A%22YXBwX2tleT04MDAwMDAwMTImYXV0aF9pbmZvPXsidGltZXN0YW1wRW5jcnlwdGVkIjoiZmI3YWVkZmNjODA2MDlkZmFhMDc5YWNjOGVkMzQ4YTYifSZkdXJhdGlvbj0mdGltZXN0YW1wPTE1NjMzMjQ3MDA%3D%22%2C%22docUrl%22%3A%22https%3A%2F%2Fwww.yuque.com%2Fquicker%2Fhelp%2Fgroup%22%2C%22id%22%3A%22clpJs%22%2C%22card%22%3A%22video%22%7D#clpJs) # 更新历史 - 1.7.4 增加多线程支持。 - 20240327 增加多线程WaitAny模式的说明。