Koniec testowania na sposób “testerski”. Zmiana paradygmatu testowania oprogramowania

Post on 18-Jul-2015

66 views 0 download

Transcript of Koniec testowania na sposób “testerski”. Zmiana paradygmatu testowania oprogramowania

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-41 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Koniec testowania na sposób “ testerski” . Zmiana paradygmatu testowania oprogramowania

• Adam PrzybyałWrotQA – Wrocaw 2015ł

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-42 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Tautologia – (masło maślane), a może jednak nie?

(5.4733)

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-43 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Małe firmy – mało własnego kodu, dużo zapożyczeń, dużo Open Source

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-44 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

100% Open Source – fail!!!

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-45 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Duża firma – dużo własnego kodu, duże rozwiązania, Open Source?

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-46 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Open Source – sztuka znalezienia balansu między tym co udostępniasz, a tym co nie

udostępniasz

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-47 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Z każdą linijką kodu udostępnioną na Githubie ginie jeden tester?

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-48 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Nowe podejście? Falsyfikacja testów? Testowanie wiedzy?

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-49 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

#!/usr/bin/pythonimport unittestimport antlr3from CSVLexer import CSVLexerfrom CSVParser import CSVParserclass test_csv(unittest.TestCase): def setUp(self):

pass

def test_test(self): self.assertTrue(True)

def test_lf(self): parser=parserek("\n") wynik=parser.line() self.assertFalse(wynik)

def test_crlf(self): parser=parserek("\r\n") wynik=parser.line() self.assertFalse(wynik)

#@unittest.skip("omijam test") def test_red(self): parser=parserek("red") wynik=parser.pole() self.assertEqual(wynik,"red")

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-410 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

grammar CSV;Options { language=Python; }@header {def test1(s): print "test"}line returns [wynik]scope { wynik2 }@init { wynik =[]; $line::wynik2=[]; }: ( (NEWLINE) => NEWLINE | ( p1=pole {wynik.append(p1) } ( COMMA p1=pole {wynik.append(p1) } )* NEWLINE ) ) { wynik=$line::wynik2}; COMMA : ( ' '* ',' ' '*) ; pole returns [wynik1]@init {wynik1=""try: wyn=$line::wynik2except IndexError: wyn=[]}

: ( p=ZNAWIASEM { wynik1 = $p.text;}| p=BEZNAWIASU { wynik1 = $p.text;}| //nic) {wyn.append(wynik1)};

NEWLINE : '\r'? '\n';

ZNAWIASEM : ('"' ( options {greedy=false;}: . )+ '"')+ {txt = self.getText().strip('"').replace('""','"');self.setText(txt)};

To change the document information in the footer, press [Alt + F8] and use the “FORM“

15-5-411 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Pytania?