 Hello everyone, my name is Mr. Sandesh Pare, I am currently working as an assistant professor in the department of computer science and engineering at Walchand Institute of Technology, Sallapur. In this video, I am going to cover the topic that is testing of the mobile applications in Android. So, we will see the learning outcome that is at the end of this video. You will be understanding the different techniques which are used to test the mobile applications and you will come to know the benefits of the application testing. So, let us start with the introduction one. Why testing is necessary in any app development? It is the biggest question. Because we are familiar with the software engineering also, testing plays an important role in the app development. Because we have to ensure or we have to confirm that a particular developed app is working as per the demand or not, otherwise the whole propaganda of the application development will discredit, that should not happen, it will create a very bad impression on the consumer. That is why the testing plays a biggest role rather than development. Testing is important than development. Because some mistakes may happen at the development time, but one should not be obsolete the particular mistakes or the errors or the non-functions in the app development during the testing. Testing is nothing but the procedure of the validation. It means a certification that a particular application is working as per the demand and as per the design. And conformance with the functional requirement means in this phase we are going to check only the functional requirements, that is it is working as per the demand or not. And conformance with the non-functional requirements means here the procedure of optimization comes into the picture. Means we have to give that is the required output, but can we reduce the code? Can we reduce the resources? Can we reduce the process which are required for the app development here? Since optimization is performed in the non-functional requirements confirmation. So testing confirms the optimal usage of resources such as first one is the available memory. The desired mobile application should use the minimum memory in terms of the storage and in terms of the processing power. It should use the minimum memory, then and then only it will consider as the good one. It should use less battery backup. If your app is working properly but it is consuming a high battery, high battery power then it will not hit in the market. It will create the problem according to the consumer one. And processing power is also same, that is it should take a less processing power. Otherwise if your app is working correctly but it is taking too much processing power then the mobile device on which it is installed and playing it may be get hanged. So it is not good. It should support on the diverse set of devices because there are number of devices in the market which are available in different screens, sizes, different colors. So with different densities also. So your app must be supported by all of them devices. Because the particular developer does not know that on which device the particular app will be installed and used. And if it is not supporting one then it will create a bad impression on the consumer and in the market the application may be get flopped. And performance according to the different carrier networks means certain apps are there in market nowadays using the mobile data while performing the operations. So during this it should not consume the high amount of the mobile data, otherwise it will again create the chaos in the market. And according to the security point of view the app must be provided security to the data which is in the mobile device or regarding the application data. And the application should be trustworthy that particular data of any user should not be shared with any other one and not misused also. It is the main aim behind it. And next is the usability of the app that is a particular app should be easy to use. As we can see components of the testing of Android applications is nothing but you can see as in the screen that first testing the project under that package here the hierarchy is shown means it is divided into the sub-task and again packages are divided into the sorts and then again sorts are divided into the test cases according to this particular cases that particular function or that particular part of a code is get tested that is working functionally and non-functionally correct or not. So let us start with the activity. As we know what is activity it means it is not a single process one it means suppose you are downloading a particular file at that time you are playing the music at the background ok and at the same time you are surfing in the gallery also ok. So these all three tasks are not the separate one according to the activity ok means these are three different tasks all but it is one as whole considered as the one activity ok. So while testing the activity there are mainly two functions are there that is a setup and tear down ok as you can see in the code that is at the setup is line number 6 and 13 number line shows the tear down function ok at the setup your activity will be get created and a particular activity is assigned to the text view as you can see and in the tear down it is again after the testing it gets nulled and another one aspect is the service one ok service is nothing but it is different from the activity. Activity is particular regarding to particular time ok but service is not like that it is continuously playing at the its role at the background one and it is providing the service to the user ok and a particular service may provide the service to the different activities at the any time ok. So while testing this service a test case should be either test that is a particular business logic is implemented as a long running task ok means continuously running or not and execution of the appropriate methods ok like binding of particular resources or to starting any activity and unbinding the resources or the whatever processes that are called at the proper time or not it is handled by the testing of the service ok this is the code for the testing service ok setup and tear down methods are used in this also ok as you can see intent is used ok intents are generally used to exchange the data between exchange the user data ok it is the main function of the intent so new intent is arise here ok by using the counter service class and then add the tear down again it is a released one ok this is regarding service. So there is one question for you guys the how testing is different from the activity as I said activity and service are different activity is a time consuming sorry time limited and service is continuously running at the back end and providing the service to different activities and it performs a certain operations like a starting and stopping of the particular process call and binding or unbinding of the resources also. Next one is the content provider it actually plays a role to exchange the data between different applications and while testing this we have to test mainly three things that is validation of the appropriate resolution of uniform resource identifiers are the definition of MIME ok that is a multi-purpose internet mail extensions and a result of current operations it means recording related to the database we have to perform these operations their particular results are valid or not. So again for the content provider testing there is setup and tear down functions are there and you can see the particular uniform resource identifiers is again passed here ok and at the tear down it is released one. So app testing is mainly checking the five main things that is a functionalities of the application that is working not correct or not usability of the applications then performance of the application and then network which is used by the application and then security of the data which is regarding the application data or the may be device data ok. So these five things are mainly covered while the testing of the mobile application these are some references I used to make this video thank you.