Automation of goibibo website using selenium webdriver? - selenium

How to select date after 7 days and fetch one way flights using BDD framework on goibibo.

Related

Simultaneous User Testing

My requirement is to test when four to six different users accessing the web application from different locations and doing the same functionality at the same time.In such scenario which testing tool i should use?To perform such testing can i use selenium webdriver using testNG(session handling)?For example if 6-10 users are creating gmail account from different locations at the same time(complete the functionality of account creation),then i want to see the performance of the web application wheather it has been performed smoothly without any delay or hiccups .
Selenium WebDriver with TestNG, you can write automated tests to simulate your scenario
JMeter or LoadRunner can provide metrics such as response times and resource utilization.

How i can automate Desktop apps beside the web in selenium webdriver?

I have a case in our website than when you click on Email to Friend its then the desktop outlook application open the email template and i have to check the predefined content in this email, so how i can check the email content in selenium webdriver?
The same case when i do share from the web on Telegram application.
Usually, I don't automate such cases since automated tests are more about regression testing. You need to evaluate how often this functionality will change. If it is once a year, it doesn't make sense to automate it just for the sake of automating it.
You can read more about ROI of automated tests:
(a) Automated test script development time = (Hourly automation time per test * Number of automated test cases) / 8
(b) Automated test script execution time = (Automated test execution time per test * Number of automated test cases*Period of ROI) / 18
(c)Automated test analysis time = (Test Analysis time * Period of ROI) / 8
(d) Automated test maintenance time = (Maintenance time * Period of ROI) / 8
(e) Manual Execution Time = (Manual test execution time * Number of manual test cases * Period of ROI) / 8
You can find more in this article that I found on Google- https://dzone.com/articles/how-to-calculate-roi-for-test-automation
I had a similar situation but I was interacting with MS-Excel in my case.
I would suggest you use AutoIT and Sikuli to automate non-browser functionality in conjunction with Selenium.
Note:
By importing the autoitx4java and Sikuli jar files in eclipse project you can use them along with selenium code.
Below mentioned urls should help you get started with AutoIT and Sikuli.
AutoIT:
http://automation-home.blogspot.in/2015/06/java-and-autoit-automating-calculator-application.html
Sikuli:
http://selenium-suresh.blogspot.in/2014/01/sikuli-automation-tool-integration-with.html
http://www.tothenew.com/blog/integration-of-sikuli-with-selenium-webdriver/

Selenium Grid for stress/performance testing

Im new to using Selenium Grid so I don't really know that much about it. What im trying to do is simulate 400 users using my website. I can create the test script that simulates the users actions but im not sure how to use Selenium grid to simulate 400 users using the website at once. Any help or useful tutorials would be appreciated.
At the moment im using selenium webdriver and firefox driver to simulate one users actions. All my tests are being run through eclipse.
I think what you are looking is a Grid implementation but not using a standard webbrowser. I think what you want is to just do a multi-threaded GhostDriver test by registering GhostDrivers to your Grid nodes. You can use TestNG to fork the threads using a TestNG instance generating class factory.

Selenium IDE - which webmailer do you prefer for testing?

Dear Selenium IDE Friends.
I test my webapplication via Firefox-Plugin Selenium IDE. I have to test: sending a newsletter and verify the newsletter-text. Selenium IDE cant´t break out of the browser to move to my outlook, so i have to use a webmailer. Some webmailer like 1und1 or freenet have frames in the layout. Selenium IDE doesn´t select elements in frames, even not by function "selectFrame".
MY Question: Which Webmailer has no frames and supports testing with Selenium IDE?
Best option: Let your developers build you some in-house web mail suitable for such testing.
If thats not an option, try 10minutemail
You get new inbox every time (new e-mail address)
No frames
Selenium IDE should be able to read it
Of course. As long as you are about to use 3rd party app for your testing, consider donating some money to them ;)

What coding practices do I use in Vaadin to ensure I can record Selenium scripts?

My team is about to start using Vaadin and wants to integrate Selenium tests to allow for Test-driven development.
However I've heard there are issues with recording Selenium scripts out of the box with Vaadin and I'm wondering what practices we need to follow to make sure the scripts can be recorded easily?
If you use Vaadin use setDebugId(String id) method. All visual components has this method. After that you simply select element by ID.
WebDriver it look like:
WebElement el = webDriver.findElement(By.id("yourElementId"));
el.sendKeys("123");
Selenium 1.0
selenium.type("id=yourElementId", "123");
But sometime you will need more complex selector. In our project we use XPath with element id.
WebDriver it look like:
WebElement el = webDriver.findElement(By.xpath("//div[#id='yourElementId']/div"));
el.sendKeys("123");
Selenium 1.0
selenium.type("//div[#id='yourElementId']/div", "123");
The best way would be to get pro user accounts for your team and use the vaadin testbench. You can then profit from the experiences made by senior vaadin developers and save a lot of effort.