Jump to content

Q T P Lo Work Chesevallu Konchem Itu Randi...... Urgent


Recommended Posts

Posted

naadi ecommerce website testing.

 

flow entantey 

 

customer gaadu oka item select chesukuni danni shopping bag lo add chesthadu ------> then checkout aythadu ---------> then shipping address ishtadu ------------> then credit card info isthadu --------->

place order ane button click chesthadu--------------> and finally order confirmation page ki navigate avuthadu.

 

so naa question entatnatey website lo konni konni objects dynamical ga change avvuthunnayi. so product selection appudu problem aithandi  endukantey eppudu maruthunnayi. \

 

so evarikaina random item selection, its color selection and size selection ki dynamic descriptive programming telisthey konchem cheppandi. 

 

i mean i want to select a product randomly, its color and its size also  so QTP lo random selection ki emanna script telisthey cheppi punyam kattukondi. 

 

thanks all in advance. 

 

 

 

 

 

 

Posted

naadi ecommerce website testing.

 

flow entantey 

 

customer gaadu oka item select chesukuni danni shopping bag lo add chesthadu ------> then checkout aythadu ---------> then shipping address ishtadu ------------> then credit card info isthadu --------->

place order ane button click chesthadu--------------> and finally order confirmation page ki navigate avuthadu.

 

so naa question entatnatey website lo konni konni objects dynamical ga change avvuthunnayi. so product selection appudu problem aithandi  endukantey eppudu maruthunnayi. \

 

so evarikaina random item selection, its color selection and size selection ki dynamic descriptive programming telisthey konchem cheppandi. 

 

i mean i want to select a product randomly, its color and its size also  so QTP lo random selection ki emanna script telisthey cheppi punyam kattukondi. 

 

thanks all in advance. 

 

changeable item ni ela predict chesthav - i don't think you can

better involve developer and ask them to create a situation for the above scenario

Posted

changeable item ni ela predict chesthav - i don't think you can
better involve developer and ask them to create a situation for the above scenario



Set objBrowser = Browser("name:=.*Chico's")
Set objPage = objBrowser.Page("title:=.*Chico's")


-------Creates objects for Product Images
Set oDesc = Description.Create()
oDesc("micclass").Value = "Image"
oDesc("class").value="Product-image"


'--------------Retrieve all Images objects from this page.-----------
Set ProductCollection = objPage.ChildObjects(oDesc)
NumberOfProducts = ProductCollection.Count

objBrowser.Sync
'--------------displays number of products in msg---------
msgbox "Products" & NumberOfProducts


Randomize
AnyProducts=RandomNumber(1,NumberOfProducts)
ProductCollection(AnyProducts).Click



Paina code random product selection ki, naaku random color selection ki code kavali
Posted

Set objBrowser = Browser("name:=.*Chico's")
Set objPage = objBrowser.Page("title:=.*Chico's")


-------Creates objects for Product Images
Set oDesc = Description.Create()
oDesc("micclass").Value = "Image"
oDesc("class").value="Product-image"


'--------------Retrieve all Images objects from this page.-----------
Set ProductCollection = objPage.ChildObjects(oDesc)
NumberOfProducts = ProductCollection.Count

objBrowser.Sync
'--------------displays number of products in msg---------
msgbox "Products" & NumberOfProducts


Randomize
AnyProducts=RandomNumber(1,NumberOfProducts)
ProductCollection(AnyProducts).Click



Paina code random product selection ki, naaku random color selection ki code kavali

 

ask developer for help in your company.
 

×
×
  • Create New...