Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
dileepreddys
Posts : 8
Join date : 2012-05-09

Recording problems... Empty Recording problems...

Thu May 10, 2012 1:53 pm
Hi there,
when the time of recording...i added the club name, description and uploaded image.

when the time of run, it showing : [error] There was an unexpected Alert! [Club Name already exist, please change the Name and try again.]

how i have to change the name of club manually and it is not uploading image also, it's talking default image.

could anyone please help me out

Thanks&Regards.
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

Recording problems... Empty Re: Recording problems...

Thu May 10, 2012 4:34 pm
You need to change club name..it is firing validation for already exist club name..
You can generate club name randomly to avoid validation...
avatar
dileepreddys
Posts : 8
Join date : 2012-05-09

Recording problems... Empty Re: Recording problems...

Thu May 10, 2012 4:43 pm
thnq rohit...

I not get uuu...could u please explain clearly.

avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

Recording problems... Empty Re: Recording problems...

Thu May 10, 2012 9:04 pm
When you create these scripts, they will run static data in your application. If you run the script over and over, the same data will be input. For your application(and many others), more than one record of the same name cannot be inserted. Your club name already exists. What rohit is saying is you need to create either a function of some sort or functionality within your scripts to randomly create a club name. This will create a unique club name, thus eliminating the validation errors.

I'm confused as to what is going on with the image upload. Can you give us a little more information on that?

-Cameron
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

Recording problems... Empty Re: Recording problems...

Fri May 11, 2012 12:09 pm
When you try to create new record with alary entered club name it is firing validation..that ccox explained you in detail.

To generate random club name you can use
store | javascript{"joe+" + Math.floor(Math.random()*11)} | variable

then pass this variable as club name in your script.

It will resolve already exists club name validation.
avatar
dileepreddys
Posts : 8
Join date : 2012-05-09

Recording problems... Empty Re: Recording problems...

Fri May 11, 2012 4:02 pm
thnx very much cameron & rohit...

when i'm running the script, the new club is creating but image is not uploading, taking default image.,
if i want to upload new image for every new club, is there any command for that? could u plz give me any idea.

cheers...
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

Recording problems... Empty Re: Recording problems...

Fri May 11, 2012 4:05 pm
are you passing path of image??
If yes, just make array for different images n then just pass it in loop.
For every iteration it will take next value for image..
Sponsored content

Recording problems... Empty Re: Recording problems...

Back to top
Permissions in this forum:
You cannot reply to topics in this forum