Showing posts with label Software Test. Show all posts
Showing posts with label Software Test. Show all posts
Tuesday, 6 May 2014
Web Service Performance Metrics
• Server Side: can be gathered by stress testing on the server end.
Important parameters are:
– Server throughput (measured as the number of requests per second)
– Latency (time taken between the service request arriving and the request being serviced.)
• Client Side: client side monitoring or distributed load testing can be used to gather data. Important parameters are:
– Latency (WS processing time + network latency). This is the time taken for a service call to return the earliest response bytes
– Throughput (the average byte flows per unit of time, including latency)
– Error rate (identifies the dependability of the service)
Etiketler:
JMeter,
Software Test
Friday, 2 May 2014
Why Cloud Testing
Traditional approaches to test a software incurs high cost to simulate user activity from different geographic locations.
Testing firewalls and load balancers involves expenditure on hardware, software and its maintenance. In case of applications where rate of increase in number of users is unpredictable or there is variation in deployment environment depending on client requirements, cloud testing is more effective.
Types of testing:
Steps for Cloud Testing
Testing firewalls and load balancers involves expenditure on hardware, software and its maintenance. In case of applications where rate of increase in number of users is unpredictable or there is variation in deployment environment depending on client requirements, cloud testing is more effective.
Types of testing:
- Stress Testing
- Load Testing
- Performance Test
- Functional Test
- Compatability Test
- Browser
- Latency
Steps for Cloud Testing
Etiketler:
Software Test
Saturday, 5 April 2014
JUnit ve Birim Test
Kent Beck ve Eric Gamma tarafından dizayn edilmiş ve unit test yazılabilmesi için tasarlanmıştır.
Unit (birim) test edilebilir en küçük program birimidir.
Fonksiyon method yada programın kendisi olabilir.
Nesne yönelimli programlamada birim olarak methodlar kullanılmaktadır.
JUnit ANT ile entegre edilebilerek kullanılabilir.
Gereksinimler
- Eclipse
- JUnit
- Junit jar dosyası
Yazılım Geliştirme Döngüsündeki Yeri
- Daha hızlı yazılım geliştirme
- Çok daha az hata içeren kod
- Testler kodun örnek çalıştırılabilir örnek dökümanını oluşturur.
- Daha iyi tasarıma sahip kaliteli bir kod sağlar.
- Hatalar daha çabuk bulunur ve düzeltilir.
- Daha anlaşılabilir kod
- Kodun tekrar düzenlenmesini oldukça kolaylaştırır.
Ekran Görüntüsü:
Assertion Method Özellikleri
JUnit Assertion methodları Assert kelimesi ile başlar.
Testin başarılı olup olmadığını gösterir.
Basit olarak gerçek değer ve beklenen değer arasındaki karşılaştırmayı yapar.
2 farklı şekili vardır .
AssertXX(..)
AssertXX(Strıng message, ...)
Örnek :
public class Test extends TestCase
{
void testCode()
{
Object a,b;
assertTrue(a == b); // kotu kullanim sekli
assertSame(a,b); // iyi kullanim sekli
}
}
Unit (birim) test edilebilir en küçük program birimidir.
Fonksiyon method yada programın kendisi olabilir.
Nesne yönelimli programlamada birim olarak methodlar kullanılmaktadır.
JUnit ANT ile entegre edilebilerek kullanılabilir.
Gereksinimler
- Eclipse
- JUnit
- Junit jar dosyası
Yazılım Geliştirme Döngüsündeki Yeri
- Daha hızlı yazılım geliştirme
- Çok daha az hata içeren kod
- Testler kodun örnek çalıştırılabilir örnek dökümanını oluşturur.
- Daha iyi tasarıma sahip kaliteli bir kod sağlar.
- Hatalar daha çabuk bulunur ve düzeltilir.
- Daha anlaşılabilir kod
- Kodun tekrar düzenlenmesini oldukça kolaylaştırır.
Ekran Görüntüsü:
Assertion Method Özellikleri
JUnit Assertion methodları Assert kelimesi ile başlar.
Testin başarılı olup olmadığını gösterir.
Basit olarak gerçek değer ve beklenen değer arasındaki karşılaştırmayı yapar.
2 farklı şekili vardır .
AssertXX(..)
AssertXX(Strıng message, ...)
Örnek :
public class Test extends TestCase
{
void testCode()
{
Object a,b;
assertTrue(a == b); // kotu kullanim sekli
assertSame(a,b); // iyi kullanim sekli
}
}
Etiketler:
Software Test
Subscribe to:
Posts (Atom)


