Test Scenarios

Content

Test Scenarios

General recommendations

First of all, the following organizational issues have to be resolved before beginning with the tests:

  • Make sure you have provided your contact data to PCS Support (support.pcs@rne.eu)
  • make sure you have the test account for PCS Core System
  • make sure you have specified and agreed with RNE the communication channel (see chapter 5)

The general recommendation for the testing organizations is also to find the partner organization for the particular test (for example, as it was given in the templates and examples: SBB Personenverkehr and DB Fernverkehr / SBB-Infra and DB Netz) – the communication channel is organized on agency (organization) level, i.e. one channel per agency (organization), see 5.1.

All actions (request/response web service communication) which are given in the test scenarios are described in the chapters 2 and 6. 

Test Scenario 1: Applicant User and Applicant National System

The following test scenario corresponds to the business process, where several Applicants are supposed to work on an international path request.

  1. execute “authenticate” request with your PCS test account
  2. take JSESSIONID=… value from the response to a clipboard of your choice (e.g. notepad on Windows systems), if the login was successful. 
  3. execute operations for:
    • getOperationPointByName in order to get the proper codification for the operation points you want to use in the future dossier(s)
    • getAllAgencies in order to get proper agency coding for the agencies which should be involved in your dossier(s).
  4. build up your international path requests (dossier(s) in the format given in IntegrationPathfinder-soapui-project.xml) with the data from your national system and codification for locations and agencies you have got in the step 3.
  5. execute “createDossier” operation
  6. check the web service response after execution
  7. copy the dossier-id(s) from the response to a clipboard of your choice (e.g. notepad)
  8. check the existence of the new dossier(s) in PCS Core System (https://pcstest1.rne.eu/pcs/login) – dossier should already be in the Harmonization phase.
  9. If you choose to export the particular dossier from the Pathfinder Core System to XML format, you will see the dossier-id – you can compare it with the dossier-id you have got in the response in the step 7.
  10. change some data in the particular dossier in “Details” view in PCS Core System and save the dossier in PCS Core System (note the dossier version number)
  11. If you have specified the communication channel, you (i.e. your national system) should be notified upon the change. For example, if you have specified to have a directory on Integration Platform central server which you can check via FTP, the updated dossier should be stored after a few minutes automatically by the Integration Platform in the particular directory. All of your Applicant-partners should also check the notification provided by the Integration Platform – did they also get the updated dossier.
  12. execute the operation “getDossier” with the particular dossier-id
  13. check the data in the response, compare it to the data that you see in the view of the same dossier in the PCS Core System.
  14. use the data from the response for the execution of the “updateDossierRUIMPair” function: copy the content of the response (starting with <pathfinderintegration> tag)
  15. change some arbitrary information in the dossier content. Note: the system allows you to change the data only of your agency, it prevents you from changing the data of other agencies.
  16. execute “updateDossierRUIMPair” function
  17. check the response of the web service
  18. check the version number (is it incremented) in PCS Core System, in “Basic Data” view of the particular dossier.  
  19. ask your partners to check the notification of their national system over the specified communication channel.
  20. Try to update the phase acceptance indicators, and, if you are the leading Applicant, try to use updateDossierRUIMPair to issue “Path Request” (change the dossier process phase code in the “dossierstatus_id” element – you can always check the codes by using the operation getDossierProcessPhases)
  21. after the issuing of Path Request, the dossier is transferred to the “Path Request” phase in the PCS Core System
  22. ask your leading IM-partner to check the notification on the national system – did Integration Platform send the dossier which was put into “Path Request” phase. 

Test Scenario 2 (IM User and IM National System)

This scenario corresponds to the business process model: IMs prepare the response.

  1. (applies for leading IM) check your communication channel for the new dossiers that are switched to Path Request from Harmonization by your Applicant-partner
  2. (applies for leading IM) check the PCS Core System for the new dossiers that are switched to Path Request from Harmonization by your Applicant-partner
  3. (applies for leading IMthe ) if dossier is existing, compare the data from the dossier from the communication channel with the dossier in PCS Core System – they have to be the same.
  4. (applies for leading IM) do the usual things that you do with a dossier in Path Request: copy the requested Applicant timetable, work on it, assign the corresponding involved IM agencies to the operation points in the IM timetable, and finally, switch the dossier to the “Path Elaboration”
  5. (applies for leading IM) ask your IM-partners to check their communication channel and PCS Core System Inbox – they should have the dossier that you have put to Path Elaboration in the step 4.

Note: the next steps can be executed by any involved IM:

  1. if the dossier is existing, you may work normally with the dossier in PCS Core System. After each change, check your communication channel – your national system should be notified about the updated dossier.
  2. execute “authenticate” request with your PCS test account
  3. take JSESSIONID=… value from the response to a clipboard of your choice (e.g. notepad on Windows systems), if the login was successful.
  4. execute the operation “getDossier” with the particular dossier-id
  5. check the data in the response, compare it to the data that you see  in the view of the same dossier in the PCS Core System.
  6. use the data from the response for the execution of the “updateDossierRUIMPair” function: copy the content of the response (starting with <pathfinderintegration> tag)
  7. change some arbitrary information in the dossier content. Note: system allows to change the data only of your agency, it prevents you from changing the data of other agencies. The system prevents you from changing the data in the requested RU-timetable – you are able to change only the timetable data in the IM-timetable.
  8. execute “updateDossierRUIMPair” function
  9. check the response of the web service
  10. check the version number (is it incremented) in PCS Core System, in “Basic Data” view of the particular dossier.  
  11. ask your partners to check the notification of their national system over the specified communication channel.