TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: In Software Testing does "branching" and "stacking" of test cases exist?

1 点作者 sqln00b大约 7 年前
I&#x27;m researching certain aspects of web-based UI regression tests of a customized closed source remote standard software.<p>I have close to no experience in software testing. AFAIK test cases should be rather atomic and carefully consider state.<p>&gt;With &quot;branching&quot; I mean only once executing steps different test cases commonly begin with and only then starting to execute each test cases&#x27; unique parts one after another.<p>&gt;With &quot;stacking&quot; I mean integrating test cases that depend on each other into one &quot;stacked&quot; test case that reports how far it got (&quot;until login-page&quot;, &quot;until login as A&quot;, &quot;until placing ABC in shopping cart&quot; etc)<p>More specifically: According to common best practices if I test the behaviour of several UI elements on the same page A, do I…<p>a) …Repeat the whole login and navigation process for every UI element?<p>b) …Seperately test login and navigation to A? Does this differ for manual and automated testing?<p>Especially when it comes to manual testing and test cases that I do not expect to affect global state but are rather UI-focussed I thought about grouping those test cases (as in once logging in and navigating to page A and then testing all ist UI elements one-at-a-time. But it feels like a &quot;process smell&quot; to me. Even if I don&#x27;t expect them to, I feel like &quot;using&quot;&#x2F;&quot;triggering&quot;&#x2F;clicking the UI elements might actually cause unexpected side effects that interfer with the result of the next UI elements&#x27; tests. But as I don&#x27;t have access to the sofware&#x27;s internals how <i>do</i> I effectively avoid such side effects? Re-deploying the customizations to a vanilla system before each test? That is not feasible.<p>I appreciate any input.

暂无评论

暂无评论