Challenges Faced
1.)GIT -Invalid authentication credentials.(After giving wrong username or password).
--->Follow the steps to resolve this issue.
A.)For Windows
Step1.)runas /noprofile /user:Administrator cmd
--->In place of Administrator provide Username.
Step2.)This will ask for Your System Credentials (Your password) [Password is hidden, not displayed to you on CMD]
Step3.)After this you'll navigate to a new cmd window.
Step4.)Run the command ===> "git config --global credential.helper manager"
Step5.)Now goto the project location and run the command,
===>"git config credential.helper gcloud.sh"
Step6.)Now you can use git command.
A.)For Mac
Step1.)Run the command ===> "git config --global credential.helper manager"
Step2.)Now goto the project location and run the command,
===>"git config credential.helper gcloud.sh"
Step3.)Now you can use git command.
2.)GIT - If you want to start from beginning then follow the following steps.
Step1.)Clone the project using command ---"gcloud source repos clone androidapp --project=viacodebase"
where android app is project name.
Step2.)Update your local branch with some other branch using command "git pull origin branch_name"
Step3.)Now open the android studio and wait till build, if you are still getting error then try to clean project and rebuild the project until all errors removed.
Step4.)After successfully build with 0 errors and some warning , you can run the test.
3.)To add the local project to google cloud , follow the steps.
Step1.)Open cmd/terminal and goto the project location that you want to add.
Step2.)Run the following command--
"git remote add google \https://source.developers.google.com/p/viacodebase/r/jmeter"
Where jmeter is project name.(Already created on google cloud)
Step3.)Change the config file,
A.)For mac , run the command.
- vi .git/config
B.)For windows open .git folder present in project directory.
-->Open the config file and
- delete devgit.via.com repo(If it is present ) and it's alias and change google repo alias [google -> origin]
Step4.)Now you can use git command to manage your project with google cloud .
4.)While giving Android SDK location on Jenkins Server.
You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 25.0.2, Android SDK Platform 23].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Solution:-To resolve this issue, place sdk "tool" dir downloaded and license dir(Already available for your project-->Goto sdk location on your local System and find the license dir), together in sdk dir(Created by you).
And upload this dir on Server and give the location till sdk .
for eg-->Users/downloads/sdk.
5.) gcloud command not found on remote jenkins server.
Solution:- Goto the link,
- Install Gcloud SDK on your system (link)
You need to install google cloud sdk as per your OS requirements, and follow the steps.
- Make sure that Python 2.7.9 or later is installed on your system.
python2 -V- Download one of the following:
PLATFORM PACKAGE SIZE SHA256 CHECKSUM Linux (x86_64) google-cloud-sdk-172.0.0-linux-x86_64.tar.gz 17.8 MB 63b3886debb897820641b4e8296c4f20fb7c8437aeb81922ad90aeb79e477e37 Linux (x86) google-cloud-sdk-172.0.0-linux-x86.tar.gz 17.3 MB d594a48a6d0256c3e0ce534a8bf1b0681501403531761f5daf6bbe5fa9407f10 - Extract the file to any location on your file system.
- Optional. Run the install script to add SDK tools to your path, enable command-completion in your
bash
shell, and/or and enable usage reporting.Open a new terminal so that the changes take effect../google-cloud-sdk/install.sh- Run gcloud init to initialize the SDK:
./google-cloud-sdk/bin/gcloud init- Select project and make authorization.
- Optional. Install additional components using the component manager.
Now you can use gcloud command.
6.) Exception in thread "main" java.lang.NoClassFoundError: cucumber/API/formatter/Formatter. Solution - a.) Add gherkin dependency in pom. b.) Check the feature file format - if not fine format it Ctrl + alt + L7.) Org.openqa.selenium.webDriverException: Java.net.socketException / Sharing violation.Solution - Kill the cromedriver and chrome task. Create one .bat file with following command. taskKill /F / IM chromedriver.exe taskKill /F /IM chrome.exe And run the file
Comments
Post a Comment