Posts

Showing posts with the label Automated Testing

Tips of Load Test Meetup with SkiPjaQ

{ how often you run test, how often code change, audience changes. } { LATENCY, CONCURRENT USER } { DESCRIPTIVE model,  study the user behavior and design test accordingly. Do not random. } { design waiting time in the test to avoid saturation, production data arbitrary command, run queue length } { report: [Jmeter + influx db, use thread and wait time to get a optimized ration, no aggregate report enabled, find the deritive of the cure.] }

Performance Test in DevOps

Image
Model -> Test Interesting Change Things is smaller and smaller ​

Test Automation (Action Based Testing)

Image

AutoTest Flow in DevOps world.

Image
From post:   https://goo.gl/YXVctP

JMeter Listener and how to use JMeter.

NEVER run a load test on the JMeter GUI! Use it only for test recording, development, and debugging. NEVER run a load test on the JMeter GUI! Use it only for test recording, development, and debugging. JMeter  listeners enables performance engineers to monitor the requests sent from JMeter as well as to analyze the responses received from the system under test.  Nearly all listeners have the ability to write results to a file, allowing performance engineers to transform them to the format they need for analysis. View Results Tree  listener provides the request parameters, response parameters and the response data. The  Simple Data Writer  is such a listener. This listener can write results only to the filename that is provided.  All listeners can be found by right clicking the test plan  Add  >  Listeners . A  JMeter  listener will only collect data from JMeter elements at or above its level. The Agg...

Few words to API Test

Image
3rd and 4th are sometimes forgot.. 

How test should be structured.

Image
Verify - Act - Verify

How to use Selenium(Question)

to use selenium better, the test has to understand how oop work, and use oop in the test design. and how to execute and report, the selenium test. Because the framework you can do everything.  What comes for free ?  What come with free. What does not come for free. with Selenium??

ATDD / BDD

TDD: ATDD BDD : is an approach to build software.   Talk first,, Act later.. A common problem with poor unit tests is they rely too much on how the tested function is implemented. This means if you update the function, even without changing the inputs and outputs, you must also update the test. This is a problem because it makes doing changes tedious. so instead of thinking of how the code is implemented, we spend a moment thinking of what the scenario is. Typically you phrase BDD tests in the form of “it should do something”. So when ticking a counter, it should increment count by one. Unit Testing gives you the what. Test-Driven Development gives you the when. Behavior Driven-Development gives you the how. Although you can use each individually,  SBE Cucumber vs Specflow

my CSS dinner solution

http://flukeout.github.io/    a good small training for CSS locator in Selenium. #1 plate select all plate #2 bento select all bento #3 plate#fancy # is for id field #4 plate>apple > is parent > chile #5 plate#fancy>pickle  #3 +#4 #6 apple.small . is for class field #7 orange.small . can use in any level #8 bento>orange.small #4 + #6 #9 plate, bento ,  for multiple elements in same level #10 * everything #11 plate.* #4 + #10 #12 plate+* "+" is for another element besides current one #13 pickle ~ pickle "~" Select elements that follows another element #14 plate > apple #15 plate>orange:first-child #4 +  :first-child  : select the first child element #16 plate>*:only-child #4 + #10  +  :only-child  select elements...

Selenium

Image
How does your business make money What feature of your application are being used What browser are your users using What things have broken before. Build a framework or use an existing one. Test should be able to run in a random order.

Fiddler Script

Fiddler Script可以自己代码,来定制或者扩充Fiddler的功能。 比如可以加Tool,加context,可以修改request,response等等。 编程的逻辑不是很难,但是要对几个库要熟悉,这些都在Fiddler Script Editor里列出来了 再就是对某个类有哪些header要熟悉,这些没有在Fiddler Script Editor里面写,但是在书里写了,就是在需要的时候,查书就可以;。

Auto Test Sturcture

In an Automation test system [Test.Executor.ps1]    // TE_       Test Suite1. Execute()       Test Suite2. Execute() [Test Setup]      Testcase 1      Testcase 2 In a test suite: Test suite is a collection of testcases which has similar test characteristic as well as could share the same test environment setup, so that only need setup the environment once to same the execution time. [TestSuite Setup]    //TS_    Setup variable / constant used in the test script [Testcase]            //TC_     [Testcase Setup ]          Test setup Procedure 1     // TP_          Test setup Procedure 1      ....     [Test Execution]           Test Procedure 1           Test Procedure 2         ...

Automated test vs Automated Testing

Image

Tips to test cloud application.

Image

JMeter Https with Basic Authentication

在HTTP Authorization Manager里面的base url把要访问的url写进去,当jMeter发request的时候,会自动寻找在Authorization Manager里面设定的url,如果有配对,读入认证信息。  不要写Domain 和 Realm,如果写入这两个,就会认证失败,原因就是认证信息 没有被正确读取,然后写入Request的Header。 workaround: 用别的工具生成header,然后把 “Authorization: Basic TUFIRVhUOk1BSABDSEFDADFAA==  ”  写道Header Manager里面

Hans Buwalda - "How to get automated testing done"

Image
https://testhuddle.com/resource/how-to-get-automated-testing-done/ Few slides from Hans Buwalda's presentation "How to get automated testing done". It is a very good presentation, summarized many good points of test automation.

The quadrant of Automated Test

In M.B's blog he talks about the automated test, and programmed test.  I just think, it might be a good idea to categorize the automated test, so that an "Test automation" engineer will easily find their place in the figure, also find out what competence that he lacks. So I create a simple quadrant, very basic draft https://goo.gl/pyox70