OneCompiler

2

1639

Example heading with h2 size

Example heading with h3 size

Following is sample java code.

Automation Testing 

Tools
	
PyCharm (IDE)
	2024.1.4
Python
	3.9
Canoe
	
Control Desk
	18


How Automation Testing Happens :

1.	Canoe :

a.	We firstly open the Canoe application.
b.	It takes one .cfg file as parameter that contains configuration settings necessary for defining and executing a testing Environment for automotive networks.
c.	After opening that configuration file, we start the measurement like the Network traffic, Signal Behaviour, Error Detection.

2.	Control Desk :

a.	Control Desk  is automatically opened.
b.	 After that Add the project. For adding that project it takes two parameters such as one .CDP file and one .sdf file.
c.	It refreshes the interface Connections.
d.	It refreshes the platform Configuration.
e.	Then it instructs the control Desk to go Online.

3.	MAport Configuration :

a.	It starts creating one Test Environment for interacting with a vendor- specific test bench ( dSPACE GmbH) using the ASAM XIL API, used for configuring measurement and calibration ports (  MAPort ) and for starting the simulation. 
b.	It takes four parameter such as  MAportConfigSCALEXIO.xml as parameter.




4.	Gui for Selecting Excel Path :

a.	It Opens up one GUI from which we select the path of the TestLibrary.xlsx file where all the test cases are written. This GUI will only open the supported excel file , if you try to upload any other file it gives you error.
b.	It creates a separate folder with the current date and time as name of folder, and it create a new Test Library  excel file with the same Value and current date and time as file name.

5.	Test Case Execution :

a.	We take Start time and print in excel sheet.
b.	From these Newly Excel spreadsheets created it mostly focus on the Actions that we have mentioned along with the parameter.
c.	There are various Actions presents in the Test Library along with the other required for performing that action. ( KL30_off, KL30_on , can_write , LED_read , ExtNtc_write, InNtc_write, vol_write). And we have defined these as a function in the backend. So, if the Action value matches with this function, it starts doing its operation.
d.	To perform any actions, we need Two things Model path and Value.
e.	We Create model path by adding the signals with some fix path and we have value present in Values column of the Test Library.
f.	We perform only two operations Read and Write only.
i.	Write Operation, we fetch the value Which we have given on the Test Library and then do the read operation .
ii.	Whatever values comes after read function it print that value in the Excel Sheet.
iii.	Then we verify the value which we are reading is same as the value Present in the Values Column it also prints how much time it requires to complete that action.
iv.	If  both Value matches , Then in Condition Column it will write OK  and in result column it writes Passed.
v.	
g.	It goes through all the Actions row wise  and perform all the operation
h.	If in any situation any error takes place, then it managed by the try Expect blocks.

6.	Test Closer :

a.	If the Action Completed it Close the Excel Sheet and save that in the desired Location with the file name as result with time and date.
b.	It closes the Canoe, Control Desk, and the connections with the DSpace.