Posts

Gayatri experience

 Yeah so I am doing gayatri on a consistent basis for a few days now. The smell from the burnt wood feels relaxing in a look in the mirror with bhasm on the forehead feels different and fresh. It definitely gives focus and even if it doesnt it surely makes me feel different because energy levels are comparatively higher in the sense that lethargy is less. 

Setup pytest on windows pc

Image
1) Install python from python website~ 18~19 MB(python 2.7.15) 2) Open environment variables and add the path of python to the environment variables 3) Now copy path from python folder as given below and paste in the environment variables User variables:- C:\Python27\Scripts C:\Python27\Lib C:\Python27\libs System Variables:- C:\Python27 C:\Python27\DLLs C:\Python27\Lib C:\Python27\libs C:\Python27\Scripts 4) open terminal and run command pip install pytest==4.6.11)  5) Now check pytest is present in the script folder  6) Now again open terminal and run command pip install objectpath as it is required to run the tests 7)Now run command pip install  requests in terminal 8) Run the tests by running this command in terminal D:\Work-space\portal-alpasso\api_tests> C:\Python27\Scripts\pytest.exe .\tests\test_ibl_license_operation.py -k "tests_e2e_operations_for_abl_v2_saas_license_create_check_operation_and_get_license"\

Set java home env variable on mac

1) Install jdk from below link https://www.oracle.com/java/technologies/downloads/#java8 2) select  x64 DMG Installer version for intel laptops 3) Open terminal and type java-version 4)  https://www.youtube.com/watch?v=0cGNaFRbsCo&t=254s

Path for chromedriver

While setting path for chromedriver in the set property, we need to give path for chromedriver and also add chromedriver.exe at the end.  For eg: C:/users/programs/workspace/chromedriver/chromedriver.exe But if we are setting path in the environment variables for chromedriver, we just need to give path of the directory where chromedriver is kept. Advantage of this is you need not write this statement System. Setproperty("webdriver.chrome.driver","<chromedriver path>") For eg : C:/users/programs/workspace/chromedriver/ Note: In this case you first need to set the path and then restart the system otherwise eclipse would not be able to recognise the path and will throw an error.In cmd if you write chromedriver.exe, it will execute automatically

interview questions basic auth

What is basic auth?

interview questions on testing

What are disadvantages of postman? Limited testing area Good for restful API tests but not well desighned for soap api tests Low script reusability Unable to reuse pre written scripts or add more requests. New scripts need to be created for each project Constrained integration The tool does not support much in integration capabilities it becomes an obstacle in connecting postman with existing systems and collaborating within the team What is the kind of testing you will do tu ven you just have to check one feature? Feature testing : The feature test is the testing of features just like an actual user. Like how the actual user will use the feature. What is difference between put and post? What is 502 response code mean? Smoke testing vs sanity testing? What is a constructor? Types of constructor? What is inheritance?Give example What is a class? Give example What is difference between class and object?

Greatest of 3 numbers (3 methods)

package beginer; public class LargestOf3Nums { public static void main(String[] args) { int n1,n2,n3,temp; n1=1; n2=3; n3=2; if (n1>n2) { if(n1>n3) { System.out.println("n1 is greatest"); }else { System.out.println("n3 is greatest"); } }else { if(n2>n3) { System.out.println("n2 is greatest"); }else { System.out.println("n3 is greatest"); } } //2nd method int a,b,c; a=20; b=10; c=30; if(a>b&& a>c)  { System.out.println("a is greatest"); }  else if(b>a&&b>c)  { System.out.println("b is greatest"); } else { System.out.println("c is greatest"); } //3rd method int d,e,f,largest; d=10000;e=28600;f=33300; // largest=d>e?d:e; int largest_new=d>e?d:e>f?d>e?d:e:f; System.out.println(largest_new); } }