ministero-salute / it-dgc-verificaC19-android

VerificaC19 is the official Italian customization of the EU Digital COVID Certificate Verifier App for the Android Operating System
https://www.dgc.gov.it
Apache License 2.0
101 stars 54 forks source link

Fake QR codes for testing #94

Closed aiotech-pub closed 3 years ago

aiotech-pub commented 3 years ago

I want to know if are available QR codes to test the app and where I can found them to download.

barsa-net commented 3 years ago

There is a folder assets used by unit tests: https://github.com/ministero-salute/it-dgc-verificaC19-android/tree/develop/app/src/test/assets

They are used here: https://github.com/ministero-salute/it-dgc-verificaC19-android/blob/d3a17adf9dd096405309c8646e11a737753b6922/app/src/test/java/it/ministerodellasalute/verificaC19/utils/mock/ServiceMocks.kt#L27-L87

And then here: https://github.com/ministero-salute/it-dgc-verificaC19-android/blob/d3a17adf9dd096405309c8646e11a737753b6922/app/src/test/java/it/ministerodellasalute/verificaC19/ui/main/verification/VerificationViewModelTest.kt#L133-L169

Lazza commented 3 years ago

https://dgc.a-sit.at/ehn/

aiotech-pub commented 3 years ago

There is a folder assets used by unit tests: https://github.com/ministero-salute/it-dgc-verificaC19-android/tree/develop/app/src/test/assets

these are mocks I mean if you have fake QR to be used in user testing or functional testing. If you do not have I could make fake QR codes starting by the mocks (supposing the mocks contain all the data a QR code contains) but I need the QR parameters to be sure to produce a complaint QR code.

They are used here:

https://github.com/ministero-salute/it-dgc-verificaC19-android/blob/d3a17adf9dd096405309c8646e11a737753b6922/app/src/test/java/it/ministerodellasalute/verificaC19/utils/mock/ServiceMocks.kt#L27-L87

And then here:

https://github.com/ministero-salute/it-dgc-verificaC19-android/blob/d3a17adf9dd096405309c8646e11a737753b6922/app/src/test/java/it/ministerodellasalute/verificaC19/ui/main/verification/VerificationViewModelTest.kt#L133-L169

barsa-net commented 3 years ago

@aiotech-pub sorry, but I'm not a developer nor a mantainer of this application, I was just searching the same infos myself and pointed you out to my findings.

aiotech-pub commented 3 years ago

@aiotech-pub sorry, but I'm not a developer nor a mantainer of this application, I was just searching the same infos myself and pointed you out to my findings.

Ah OK you were in the same black sea I was. Anyway I found themo, just four but I found them.

aiotech-pub commented 3 years ago

I found the QR codes by myself: https://github.com/eu-digital-green-certificates/dgc-testdata contains test data for every EU state more or less.