{"id":2673,"date":"2016-09-29T14:53:10","date_gmt":"2016-09-29T14:53:10","guid":{"rendered":"http:\/\/www.gallop.net\/blog\/?p=1690"},"modified":"2024-05-14T12:29:57","modified_gmt":"2024-05-14T06:59:57","slug":"integrating-selenium-with-google-drive","status":"publish","type":"post","link":"https:\/\/coforge.site\/cigniti\/blog\/integrating-selenium-with-google-drive\/","title":{"rendered":"Integrating Selenium with Google Drive"},"content":{"rendered":"<p><span data-contrast=\"auto\">New-age technologies have extensively and quite positively impacted our routine activities. Today, there are sophisticated and advanced gadgets available to further ease human efforts. While emerging technologies continue to transform our lives, testing their performance for the desired outcome is indispensable.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/www.cigniti.com\/services\/test-automation\/\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Test <\/span><\/a><span data-contrast=\"auto\">automation holds numerous advantages in enhancing the testing processes and achieving maximum test coverage. <\/span><span data-contrast=\"auto\">Selenium Google Drive integration<\/span><span data-contrast=\"auto\"> is a case in point. We shall further discuss and understand the various advantages of <\/span><span data-contrast=\"auto\">Integrating Selenium with Google Drive.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">When you integrate with the User Interface (UI) of Google Drive, users can create, and open files stored on the drive within the application. This process is applicable across all the Google Drive Web applications.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">The Google Drive platform provides a bunch of APIs (Application Programming Interfaces) along with client libraries, language-specific examples, and documentation to help you develop apps that can integrate with Google Drive for automation.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1732\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/sel-logo.png\" alt=\"sel-logo\" width=\"257\" height=\"115\" \/><\/p>\n<h3 aria-level=\"2\"><span data-contrast=\"auto\">Why is using Google Drive for Test Automation recommended?<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559738&quot;:360,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/h3>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"4\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"auto\">You can create an external file that stores the test data (Input data and Expected Data) as a centralized and shared repository.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"4\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">You can populate the test data into Automation Test Script so that several APIs can be used to read the test data.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"4\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"3\" data-aria-level=\"1\"><span data-contrast=\"auto\">The total number of scripts required to cover all the possible combinations of test scenarios is small. Thus, a lesser amount of code is required to test a complete set of scenarios.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"4\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"4\" data-aria-level=\"1\"><span data-contrast=\"auto\">You get increased flexibility and maintainability of automation test scripts, which also offers a clean and user-friendly interface.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"4\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"5\" data-aria-level=\"1\"><span data-contrast=\"auto\">Any change in the test data matrix would not hamper the test script code.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"4\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"6\" data-aria-level=\"1\"><span data-contrast=\"auto\">It provides effective communication and sharing so that it is easier for manual and automation test teams to execute the scripts on the Cloud with a required set of data.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"4\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"7\" data-aria-level=\"1\"><span data-contrast=\"auto\">Check-in or check-out from the project framework is not required to refactor the test data.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"4\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"8\" data-aria-level=\"1\"><span data-contrast=\"auto\">High re-usability can be achieved, as tests can be reused across multiple test cases by altering the test data values.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:260,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<h3 aria-level=\"2\"><span data-contrast=\"auto\">Challenges of using Google Drive for Test Automation<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559738&quot;:360,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/h3>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"5\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"auto\">To avoid script-processing errors due to incorrect data file format or content, Notepad or Microsoft Excel must be used to create and maintain the data files.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"5\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">While developing and executing automation test scripts, technical skills are required to refactor the test data sheet within the Automation framework.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:260,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<h3 aria-level=\"2\"><span data-contrast=\"auto\">Prerequisites for Integration<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559738&quot;:360,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/h3>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"auto\">Java 1.7 or greater<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">Access to the internet and a web browser<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"1\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"3\" data-aria-level=\"1\"><span data-contrast=\"auto\">A Google account with Google Drive enabled<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:260,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<h3 aria-level=\"2\"><span data-contrast=\"auto\">Google Drive Configuration<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559738&quot;:360,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/h3>\n<ol>\n<li data-leveltext=\"%2.\" data-font=\"\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:0,&quot;335559685&quot;:360,&quot;335559991&quot;:360,&quot;469769242&quot;:[65533,0],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;%2.&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Login into your Gmail account like xx@gmail.com and navigate to the Access Link <\/span><a href=\"https:\/\/console.developers.google.com\/\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">https:\/\/console.developers.google.com<\/span><\/a><span data-contrast=\"auto\"> in another tab.<\/span><\/li>\n<li data-leveltext=\"%2.\" data-font=\"\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:0,&quot;335559685&quot;:360,&quot;335559991&quot;:360,&quot;469769242&quot;:[65533,0],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;%2.&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Click on \u201cGoogle API (Application Programming Interfaces) Console\u201d under <\/span><b><span data-contrast=\"auto\">Developer Consoles<\/span><\/b><span data-contrast=\"auto\"> section at bottom of the page or navigate to link \u2013 <\/span><a href=\"https:\/\/console.developers.google.com\/apis\/library\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">https:\/\/console.developers.google.com\/apis\/library<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<li data-leveltext=\"%2.\" data-font=\"\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:0,&quot;335559685&quot;:360,&quot;335559991&quot;:360,&quot;469769242&quot;:[65533,0],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;%2.&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">Click on \u201c<\/span><b><span data-contrast=\"auto\">Drive API<\/span><\/b><span data-contrast=\"auto\">\u201d under Google Apps APIs section.<\/span><\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1694\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/Google-Apps-APIs.png\" alt=\"Google Apps APIs\" width=\"280\" height=\"164\" \/><\/p>\n<p>4.Create\/Select a project in the Google Developers Console and enable the Google API. Click <strong>Continue<\/strong>, then Go to credentials.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1696\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/Image-4-point.png\" alt=\"Google API 4\" width=\"547\" height=\"347\" \/><\/p>\n<p>5.At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0and click <strong>Save<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1697\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/image-5.png\" alt=\"Image credentials - 5\" width=\"550\" height=\"310\" \/><\/p>\n<p style=\"padding-left: 30px;\">\u00a0 \u00a0 6. Select the <strong>Credentials<\/strong> tab, click <strong>Create Credentials<\/strong>\u00a0and select\u00a0OAuth client ID.<\/p>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1698\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/selenium-image-6.png\" alt=\"selenium-image-6\" width=\"522\" height=\"300\" \/><br \/>\n7. Now to create <strong>Client Id<\/strong>, click on \u2018Configure consent screen\u2019.<\/p>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" class=\"aligncenter wp-image-1699 size-small\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/selenium-7th-1024x261.png\" alt=\"selenium-7th\" width=\"550\" height=\"\" \/><br \/>\n8. Select the application type\u00a0other, enter the name &#8220;client Demo&#8221;, and click <strong>Create<\/strong>.<\/p>\n<p style=\"text-align: left; padding-left: 30px;\">9. Now dialog will appear which shows your \u201cOAuth Client Id and Client Secret\u201d. Click\u00a0<strong>OK<\/strong>\u00a0to dismiss the resulting dialog.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1700\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/selenium-9.png\" alt=\"selenium-9\" width=\"550\" height=\"\" \/><\/p>\n<p style=\"padding-left: 30px;\">10. Select the client name checkbox and click the\u00a0file download\u00a0(Download JSON) button to the right of the client ID.<\/p>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" class=\"aligncenter wp-image-1701\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/selenium-10.png\" alt=\"selenium-10\" width=\"550\" height=\"\" \/><br \/>\n11. Move the downloaded file to your working directory and rename it\u00a0client_secret.json.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1702\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/selenium-11.png\" alt=\"selenium-11\" width=\"550\" height=\"\" \/><\/p>\n<p style=\"padding-left: 30px;\">12. Now click on \u201cCreate credentials\u201d drop down button and select \u201cService Account Key\u201d.<\/p>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-1703\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/selenium-12.png\" alt=\"selenium-12\" width=\"457\" height=\"293\" \/><br \/>\n13. Select \u201cService Account \u2013 Compute Engine default service account\u201d and key type \u201cP12\u201d. Click <strong>Create<\/strong>.<\/p>\n<p style=\"padding-left: 30px;\">14. Click\u00a0<strong>Close <\/strong>to dismiss the resulting dialog.<\/p>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" class=\"aligncenter wp-image-1705\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/selenium-14.png\" alt=\"selenium-14\" width=\"492\" height=\"251\" \/><br \/>\n15. Move the downloaded file &#8211; *.P12 to your working directory.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1706\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/selenium-15.png\" alt=\"selenium-15\" width=\"500\" height=\"\" \/><\/p>\n<p style=\"padding-left: 30px;\">16. Open Google Drive from your Gmail account.<\/p>\n<p style=\"padding-left: 30px;\">17. Create a new Google spreadsheet and save it as <strong>testSheet<\/strong>.<\/p>\n<p style=\"padding-left: 30px;\">18. Click <strong>Share<\/strong> and share the spreadsheet with your Client Id (<em>xxx-developer.gsserviceaccount.com<\/em>) which you\u00a0 created above.<\/p>\n<p style=\"padding-left: 30px;\">19. Modify the Access Link setting \u2013 \u201cAnyone with the link can edit\u201d<\/p>\n<p style=\"padding-left: 30px;\">20. Click <strong>Save<\/strong>.<\/p>\n<h3 aria-level=\"2\"><span data-contrast=\"auto\">Java Source Code for Integration<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559738&quot;:360,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">Here is sample Java code for any user who wants to access Google Drive. First, download the following jars or add maven dependencies to use them download the following jars or add maven dependencies to use the same.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/p>\n<h3 aria-level=\"3\"><span data-contrast=\"none\">Jar Files<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559738&quot;:320,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/h3>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><span data-contrast=\"auto\">Download <\/span><i><span data-contrast=\"auto\">google-api-java-client<\/span><\/i><span data-contrast=\"auto\"> jars from \u2013 <\/span><a href=\"http:\/\/search.maven.org\/remotecontent?filepath=com\/google\/api-client\/google-api-client-assembly\/1.20.0\/google-api-client-assembly-1.20.0-1.20.0.zip\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">http:\/\/search.maven.org\/remotecontent?filepath=com\/google\/api-client\/google-api-client-assembly\/1.20.0\/google-api-client-assembly-1.20.0-1.20.0.zip<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><span data-contrast=\"auto\">Extract the downloaded folder and add the following jars in your project:<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769242&quot;:[9675],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"2\"><span data-contrast=\"auto\">google-api-client-1.20.0.jar<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769242&quot;:[9675],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"2\"><span data-contrast=\"auto\">google-api-client-jackson2-1.20.0.jar<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769242&quot;:[9675],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"3\" data-aria-level=\"2\"><span data-contrast=\"auto\">google-http-client-1.20.0.jar<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769242&quot;:[9675],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"4\" data-aria-level=\"2\"><span data-contrast=\"auto\">google-oauth-client-1.20.0.jar<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769242&quot;:[9675],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"5\" data-aria-level=\"2\"><span data-contrast=\"auto\">google-oauth-client-java6-1.20.0.jar<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769242&quot;:[9675],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"6\" data-aria-level=\"2\"><span data-contrast=\"auto\">google-oauth-client-jetty-1.20.0.jar<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769242&quot;:[9675],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"7\" data-aria-level=\"2\"><span data-contrast=\"auto\">jetty-6.1.26.jar<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\u25cf\" data-font=\"\" data-listid=\"3\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:1440,&quot;335559991&quot;:360,&quot;469769242&quot;:[9675],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\u25cf&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"8\" data-aria-level=\"2\"><span data-contrast=\"auto\">jetty-util-6.1.26.jar<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:360,&quot;335559740&quot;:360}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1707\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-1.png\" alt=\"code-1\" width=\"714\" height=\"533\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1708\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-2.png\" alt=\"code-2\" width=\"661\" height=\"453\" srcset=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/code-2.png 661w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/code-2-300x206.png 300w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/code-2-600x411.png 600w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1709\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-3.png\" alt=\"code-3\" width=\"885\" height=\"380\" srcset=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/code-3.png 885w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/code-3-300x129.png 300w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/code-3-768x330.png 768w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/code-3-600x258.png 600w, https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/code-3-720x309.png 720w\" sizes=\"(max-width: 885px) 100vw, 885px\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1710\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-4-1.png\" alt=\"code-4\" width=\"982\" height=\"549\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1711\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-5.png\" alt=\"code-5\" width=\"1277\" height=\"546\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1712\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-6.png\" alt=\"code-6\" width=\"1170\" height=\"495\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"wp-image-1713 alignleft\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-7.png\" alt=\"code-7\" width=\"479\" height=\"132\" \/><img decoding=\"async\" class=\"aligncenter size-full wp-image-1714\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-8.png\" alt=\"code-8\" width=\"1283\" height=\"495\" \/><img decoding=\"async\" class=\"aligncenter size-full wp-image-1715\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-9.png\" alt=\"code-9\" width=\"1017\" height=\"513\" \/><img decoding=\"async\" class=\"aligncenter size-full wp-image-1716\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-10.png\" alt=\"code-10\" width=\"1250\" height=\"564\" \/><img decoding=\"async\" class=\"aligncenter size-full wp-image-1717\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-11.png\" alt=\"code-11\" width=\"1074\" height=\"547\" \/><img decoding=\"async\" class=\"aligncenter size-full wp-image-1718\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-12.png\" alt=\"code-12\" width=\"927\" height=\"568\" \/><img decoding=\"async\" class=\"aligncenter size-full wp-image-1719\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-13.png\" alt=\"code-13\" width=\"750\" height=\"186\" \/><img decoding=\"async\" class=\"aligncenter size-full wp-image-1720\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/code-14-1.png\" alt=\"code-14\" width=\"1112\" height=\"265\" \/><\/p>\n<p><strong><u>Conclusion<\/u><\/strong><\/p>\n<p><span data-contrast=\"auto\">Google Drive is the most user-friendly storage option, where all test data can be loaded (For e.g., on Gmail, Google Docs, and spreadsheets), and accessed from all remote locations. Google provides both free and paid-for storage services. These provide multiple storage capacity options for your files and folders, where users can store backup local files and sync in files and folders across multiple computers.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">It is recommended that Google Drive services be utilized for quality assurance (QA) practices and further integrated with automation tools like <\/span><a href=\"https:\/\/www.cigniti.com\/services\/selenium-testing\/\" class=\"broken_link\" target=\"_blank\" rel=\"noopener\"><span data-contrast=\"none\">Selenium.<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335557856&quot;:16777215,&quot;335559739&quot;:300,&quot;335559740&quot;:360}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Selenium is one of the most popular Automation testing suites. It is designed to test functional aspects of Web applications across a wide range of browsers and platforms. Considering that it is an open-source platform, it is easy to integrate Google Drive with Selenium. Additionally, credentials for Google accounts can be shared with all authorized team members to effectively execute tests on the cloud.<\/span><\/p>\n<table style=\"height: auto;\" width=\"528\">\n<tbody>\n<tr style=\"color: #000000;\" bgcolor=\"#bcd6fb\">\n<td valign=\"top\"><strong><img decoding=\"async\" class=\" wp-image-1493 alignleft\" src=\"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2016\/09\/Ashish-Jain-Technical-Lead-at-Cigniti-Technologies.jpg\" alt=\"Ashish Jain technical lead at Gallop Solutions\" width=\"100\" height=\"\" \/>About the Author<\/strong>: Ashish Jain, Technical Lead at Cigniti technologies, brings with him rich experience in the field of automation for web and mobile-based applications. He has extensive expertise in both functional as well as performance automation. He also holds expertise across various automation tools and technologies and has been involved in designing Testing solutions for various clients in Energy Utilities, Donation and fitness-based domains.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>New-age technologies have extensively and quite positively impacted our routine activities. Today, there are sophisticated and advanced gadgets available to further ease human efforts. While emerging technologies continue to transform our lives, testing their performance for the desired outcome is indispensable.\u00a0 Test automation holds numerous advantages in enhancing the testing processes and achieving maximum test [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":13190,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[746],"tags":[4211,216,935,1394,1498,4210,4209,1503,1511,41,105,1771],"ppma_author":[3727],"class_list":["post-2673","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-selenium-testing","tag-api-testing-example-using-selenium","tag-automation-testing","tag-cloud-based-automation","tag-qa-practices","tag-selenium-experts","tag-selenium-experts-google-group","tag-selenium-google-drive","tag-selenium-integration","tag-selenium-test-automation-experts","tag-test-automation","tag-test-automation-framework","tag-web-based-application-testing"],"authors":[{"term_id":3727,"user_id":20,"is_guest":0,"slug":"cigniti","display_name":"About Cigniti (A Coforge Company)","avatar_url":{"url":"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2024\/10\/Coforge-blog-Logo.png","url2x":"https:\/\/coforge.site\/cigniti\/blog\/wp-content\/uploads\/2024\/10\/Coforge-blog-Logo.png"},"author_category":"","user_url":"https:\/\/www.cigniti.com\/","last_name":"(A Coforge Company)","first_name":"About Cigniti","job_title":"","description":"Cigniti Technologies Limited, a Coforge company, is the world\u2019s leading AI &amp; IP-led Digital Assurance and Digital Engineering services provider. Headquartered in Hyderabad, India, Cigniti\u2019s 4200+ employees help Fortune 500 &amp; Global 2000 enterprises across 25 countries accelerate their digital transformation journey across various stages of digital adoption and help them achieve market leadership by providing transformation services leveraging IP &amp; platform-led innovation with expertise across multiple verticals and domains.\r\n<br>\r\nLearn more about Cigniti at <a href=\"https:\/\/www.cigniti.com\/\">www.cigniti.com<\/a> and about Coforge at <a href=\"https:\/\/www.coforge.com\/\">www.coforge.com<\/a>."}],"_links":{"self":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts\/2673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/comments?post=2673"}],"version-history":[{"count":0,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/posts\/2673\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/media\/13190"}],"wp:attachment":[{"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/media?parent=2673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/categories?post=2673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/tags?post=2673"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/coforge.site\/cigniti\/blog\/wp-json\/wp\/v2\/ppma_author?post=2673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}