Friday, March 1, 2019

Cypress - Having problems installing and opening application on Windows

Lately I started to read about Cypress, but after following installation instructions from their site (npm installation), I run into this issue when trying to open application (on Operating System: Windows 10).



Here is the solution for this problem:

First step
- Create the folder where you want to install Cypress
- Run first npm init -y to create your package.json file
- Install cypress with this command npm install --save-dev cypress




Second step
You can edit your package.json file in order to set the test run command. You file can look like this:


Third step
Open Cypress with this command: npm run test
Cypress will be initialized, cypress folder with examples will be created.



Fourth step (optional)
If you want to add this project to a git repository, you can use command line like this (I use Visual Studio Code terminal).
git init
git add *
git commit -m "your message"
git remote add origin "repository name/url"
git push -u origin master



Happy testing and... make it green, becomes a dream :).

Thursday, March 15, 2018

Selenium C# - How to automatically download your file

If you want to check with Selenium that a specific file was downloaded, you need to start the new driver with some options, because the browser will show the Save popup that cannot be handled by Selenium.

You can do this by using this code in C# for Firefox and Chrome:




For IE, things are a little bit tricky, so you might try integrating TestSlack.White library and simulate the click on Save button with this library.

Later, you can create a test like this:


Happy testing and... make it green, becomes a dream :).


Wednesday, December 20, 2017

EuroSTAR 2017 in Images

I'm glad I was part of the of TestLab team this year at EuroStar 2017.

Here's how EuroSTAR TestLab looks in images.



























Happy testing and... make it green, becomes a dream :).
See you next year!

Thursday, October 26, 2017

EuroStar 2017

Happy to be part of TestLab team this year at EuroStar 2017.

The Test Lab (https://conference.eurostarsoftwaretesting.com/conference/social-events/test-lab/) is a place where participants have the possibility to meet new testers, practice testing techniques, learn from the experience of others. It also gives participants the opportunity to meet speakers face to face, gaining thorough knowledge of their presentation. 
During the 3 TestLab days, you'll learn more about: DevOps, API testing, test reporting via open discussions, tools presentation, real testing, test challenges and bug hunting.
We look forward to meet you at this event! You will be surprised by what you will find there.



Happy testing and... make it green, becomes a dream :).




Tuesday, October 17, 2017

Postman Integration with Newman and Jenkins

Postman is a powerful GUI platform to make your API development faster & easier, from building API requests through testing, documentation and sharing.
If you are working on a long-term project and you are performing API testing with Postman, you may want to include postman tests into a CI system.


Continuous Integration (CI) is a development practice that requires developers to integrate code into a shared repository several times a day. Each check-in is then verified by an automated build, allowing teams to detect problems early.





1. What you need first, is to create a collection with Postman that will contain assertions/tests. You'll need to export this collection.



Save your collection and your environment locally.





2. The next step is to link Postman with your build system and for this, you can use Newman which works perfectly with Postman. To use it you'll need java jdk and node.js installed. Install newman with this command:


You can run your postman collection that was previously downloaded with the command below. If you used an environment, add to the command, -e environemnt_name.json argument at the end.



The test result in commander line will look like this:



3. The final step is to setup Jenkins to work with Newman.




You need to create a new freestyle job project and to add a new build step of type Execute Windows Batch Command.







Add this batch command:



Build the project and go to Console Output to see the result. You should see something similar like the result previously shown.




If you want to find more about Postman integration with Jenkins you can also visit these:



Happy testing and... make it green, becomes a dream :).

Friday, July 21, 2017

Azure Storage Client Tools

Introduction

If you want to view/interact with your azure storage data you'll need to have an Azure Storage client tool.
You can either user Microsoft tools or third party tools.

Microsoft Tools
Azure Storage Client Tool Tables Queues Files Free Web Windows OSX Linux
Microsoft Azure Portal X X X Y X
Microsoft Azure Storage Explorer X X X Y X X X
Microsoft Visual Studio Server Explorer


Third-party Tools
Azure Storage Client Tool Tables Queues Files Free Web Windows OSX Linux
Cloud Portam X X X Trial X
Cerabrata: Azure Management Studio X X X Trial X
Cerabrata: Azure Explorer X Y X
Azure Storage Explorer X X Y X
CloudBerry Explorer X Y/N X
Cloud Combine X X Trial X
ClumsyLeaf: AzureXplorer, CloudXplorer, TableXplorer X X X Y X
Gladinet Cloud Trial X
Happy testing and... make it green, becomes a dream :).

Wednesday, June 14, 2017

Selenium - Uploading file when input is invisible

Do you have problems simulating file upload in case the input is invisible?


You can make the element visible by using javascript in your code. Make the element visible and then call SendKeys to enter the path into the upload file input.



Happy testing and... make it green, becomes a dream :).


Popular Posts