How to Automate UI, API, Performance & Security testing using a single Framework. One test case should check all these things. Any suggestions?
2 Answers
My solution is to pick a language, for example Ruby (a good choice imho) or Java or C# as the 'framework' for your solutions (I'm avoiding the word framework
lately though, badly abused).
Then select tools based on that toolset, for example, for ruby: cucumber, rspec, minitest.
You need to choose a performance testing tool which supports all aforementioned requirements, for example take a look at Apache JMeter:
- UI tests can be integrated via WebDriver Sampler
- API testing is naturally supported via HTTP Request sampler, see Building a WebService Test Plan user manual entry for details.
- You can use JMeter for Security Testing as well, see Security Testing With JMeter - Learn How article for several use cases
- And last but not least you can kick off any external command or program via OS Process Sampler so theoretically you can integrate anything into JMeter test.
-
+1 for jmeter. You can use jmeter for functional testing. You can schedule quick diagnostic checks to ensure that your website and/or API is up and running. One of my favorite things about jmeter is that you can setup an API test and use the exact same test for performance testing your API. Then there is the JSR223 Processor, where you can write custom scripts using your favorite language.– ToastManMar 4, 2020 at 14:32
One test case should check all those things
- why do you want to do this?