Stuck while implementing one quiker feature. | Selenium Forum
M
Posted on 14/09/2015
Hi All ,
I was trying to automate http://www.quikr.com with TestNg and HybridFramework.

1. Go to "http://www.quikr.com/msp?type=landing&aj=1" - > Click on "MSP".
2.Select Buy/Sell.
3. Here for all different types of "Category" /"Sub category " different no of fields are populating to input data.


Is there any way we can find a generic method or keyword to handle this problem,
Which one among below 2 options are better to implement.Please Suggest.

1. create different testcases with different category names. make corresponding datasheets as well.
or
2.create keywords in keywords file corresponding to each category and call that keyword but data will be fixed(or will be difficult to parametrize)
or Please suggest a better solution to implement this feature.

M
Replied on 05/10/2015

can anyone suggest how to implement this type of feature in hybridframework


M
Replied on 21/10/2015

could you please repeat you problem again.


M
Replied on 21/10/2015

My question was,
If I go to this URL"http://www.quikr.com/msp?type=landing&aj=1" and select a sell or buy
and we select a category and then sub category ,then for each sub category different number of other fields/options are coming to select.

I was trying to automate this application with hybrid framework, so in industry how this combinations are handled??

I cannot simply write the keywords steps as its not same for all subcategory.
I cannot individual user defined functions as it would be some many if we will make combinations for each.

So just thinking how this type of cases are handled.


M
Replied on 23/10/2015

the thing about the example you gave me is that all drop down have the same "ID" so automation won't be difficult we just have to careful how we send keys

like


driver.findelement(By.id(id1)).sendKeys("option1");
driver.findelement(By.id(id2)).sendKeys("option1.1");
driver.findelement(By.id(id3)).sendKeys("option1.2");
driver.findelement(By.id(id4)).sendKeys("option1.3");


or



driver.findelement(By.id(id1)).sendKeys("option2");
driver.findelement(By.id(id2)).sendKeys("option2.1");
driver.findelement(By.id(id3)).sendKeys("option2.2");
driver.findelement(By.id(id4)).sendKeys("option2.3");



options we have to be careful about other then that i see there is no problem.