测试类网站

1、  http://www.sqaforums.com/

国外著名的软件测试论坛,很多软件测试工具的问题都能在上面讨论并找到解决办法。

 

2、http://www.advancedqtp.com/

QTP专业网站和论坛

 

3、http://knowledgeinbox.com/

QTP专家Tarun Lalwani的个人网站

 

4、http://www.testandtry.com/

内容围绕软件测试、软件质量

 

5、http://www.loadrunnertnt.com/

性能测试和LoadRunner技巧

 

6、http://www.wilsonmar.com/

LoadRunner专家wilsonmar的个人网站

 

7、http://www.stickyminds.com/

包括软件质量、质量管理、软件工程、软件测试等方面内容,better Software杂志的网站

 

8、http://www.stpcollaborative.com/

专业软件测试杂志STP(Software Test & Performance)的网站

 

9、http://www.usability.gov/

可用性工程专业网站

 

10、http://www.useit.com/

可用性工程专家Jakob Nielsen的个人网站

 

 

 

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/Testing_is_believing/archive/2010/03/03/5343671.aspx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Spring Boot 提供了多种测试注解和工具,可以方便地编写测试。下面是一些常用的测试示例: 1. 单元测试 单元测试是用来测试单个或方法是否符合预期的,通常不需要启动 Spring 应用。 ```java import org.junit.Test; import static org.junit.Assert.assertEquals; public class MyTest { @Test public void test() { assertEquals(2, 1 + 1); } } ``` 2. 集成测试 集成测试是用来测试应用的各个组件是否能够协同工作,通常需要启动 Spring 应用。 ```java import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class MyTest { @Autowired private MyService myService; @Test public void test() { myService.doSomething(); // 测试代码 } } ``` 3. Web测试 Web 测试是用来测试 Web 应用的,通常需要启动 Spring 应用,并使用 Spring Boot 提供的测试工具进行测试。 ```java import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import org.springframework.test.web.servlet.result.MockMvcResultMatchers; @RunWith(SpringRunner.class) @SpringBootTest @AutoConfigureMockMvc public class MyTest { @Autowired private MockMvc mockMvc; @Test public void test() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/hello")) .andExpect(MockMvcResultMatchers.status().isOk()); } } ``` 在这个示例中,`@AutoConfigureMockMvc` 注解会自动配置一个 `MockMvc` 对象,用于模拟 HTTP 请求和响应。`mockMvc.perform()` 方法可以发送 HTTP 请求,`.andExpect()` 方法可以验证 HTTP 响应。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值