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

11
15-5-4 1 © Nokia 2014 - File Name - Version - Creator - DocID Confidential Koniec testowania na sposób “ testerski” . Zmiana paradygmatu testowania oprogramowania Adam Przyby a ł WrotQA – Wroc aw 2015 ł

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

Page 1: 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ł

Page 2: 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-42 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

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

(5.4733)

Page 3: 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-43 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

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

Page 4: 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-44 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

100% Open Source – fail!!!

Page 5: 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-45 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

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

Page 6: 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-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

Page 7: 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-47 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

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

Page 8: 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-48 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

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

Page 9: 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-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")

Page 10: 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-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)};

Page 11: 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-411 © Nokia 2014 - File Name - Version - Creator - DocIDConfidential

Pytania?