Jump to content

Recommended Posts

  • Replies 38
  • Created
  • Last Reply

Top Posters In This Topic

  • Idassamed

    14

  • fake_Bezawada

    11

  • Amrita

    5

  • former

    3

Posted

Website ni automate cheyyali,

User search chesthunna, if a user just not in the database, oka error display avuddhi, a error capture chesi next user ni search cheyyali.

Users ni oka list lo petta, using a for loop, I am iterating over the list. Aa lost lo valid and invalid users unnaru.

 

Posted
Just now, Idassamed said:

Website ni automate cheyyali,

User search chesthunna, if a user just not in the database, oka error display avuddhi, a error capture chesi next user ni search cheyyali.

Users ni oka list lo petta, using a for loop, I am iterating over the list. Aa lost lo valid and invalid users unnaru.

 

Telidu

Posted
1 minute ago, vendettaa said:

I have idea on this but am not into testing 

Idea unte cheppi punyam kattuko.

Thanks!

Doesn't matter if you are into testing. 

Posted
On 8/10/2018 at 5:19 PM, Idassamed said:

Website ni automate cheyyali,

User search chesthunna, if a user just not in the database, oka error display avuddhi, a error capture chesi next user ni search cheyyali.

Users ni oka list lo petta, using a for loop, I am iterating over the list. Aa lost lo valid and invalid users unnaru.

 

Python lone kavala? Java ayite i can try. But i have a question. What would you do with all those error messages of invalid users? Are you going to display in UI?  What is the business usecase?

Posted

how r u validating the user...any auth request sent to site..and it returns the error..

 

if yes. edana API call unte..and if it accepts username as parameter..then

python lo requsts library import chesi cheskovachu

Posted
7 hours ago, Spartan said:

how r u validating the user...any auth request sent to site..and it returns the error..

 

if yes. edana API call unte..and if it accepts username as parameter..then

python lo requsts library import chesi cheskovachu

User login is fine, this is after logging into the website, where I am searching for a user and the page throws an error.

As far as user validation is concerned, the search string is compared against the stored values in a database.

Posted
7 hours ago, Spartan said:

i think this is the soultion u r looking for.. @Idassamed

 

Will try baa, thanks.

Posted
9 hours ago, Amrita said:

Python lone kavala? Java ayite i can try. But i have a question. What would you do with all those error messages of invalid users? Are you going to display in UI?  What is the business usecase?

Java ayina ok but just logic kavali, aa error ni ignore chesthe chaalu. The problem is, that the error is not clickable, so that you can dismiss or accept it. It is not a pop up.

Posted
23 minutes ago, Idassamed said:

Java ayina ok but just logic kavali, aa error ni ignore chesthe chaalu. The problem is, that the error is not clickable, so that you can dismiss or accept it. It is not a pop up.

As per understanding:

User login into site.

Searching other users in the search bar. If user didn't find, still need to show error like "user not find" and continue to other search.

Nevu search chesinapudu, User session active lo vunte you can show both  error message and Search bar again.

Posted
32 minutes ago, Idassamed said:

Java ayina ok but just logic kavali, aa error ni ignore chesthe chaalu. The problem is, that the error is not clickable, so that you can dismiss or accept it. It is not a pop up.

Bean lo error message ani oka string create  and also oka boolean isValid flag daniki set cheyachu kada in code when you dont find user in DB?  

Streams use chesi when you loop through the list for each user when you dont find a hit in DB set this error message and also isValid flag . When you return the list to UI you have each user with error message and also isValid flag . Now do whatever you want to do with that list in UI.

Naku actually business case ento ardham kaledu . Why you need error messages for list of users? Don't you search only one user at a time and display result set or error message? 

Posted
11 minutes ago, Amrita said:

Bean lo error message ani oka string create  and also oka boolean isValid flag daniki set cheyachu kada in code when you dont find user in DB?  

Streams use chesi when you loop through the list for each user when you dont find a hit in DB set this error message and also isValid flag . When you return the list to UI you have each user with error message and also isValid flag . Now do whatever you want to do with that list in UI.

Naku actually business case ento ardham kaledu . Why you need error messages for list of users? Don't you search only one user at a time and display result set or error message? 

I am searching for a user, that too one at a time. The website needs to go and fetch the user, if a user is not found, the portal displays an error saying " No results found, refine your search"

Now the issue is, my code stops at this error because when a valid user is returned, the result for the searched user contains a few links related to that user and I have to click those links. But when the user is not found, the code is searching for those links and those links are not found. I need the code to go look for the links only when a valid user is returned and when a bad search occurs, the code should ignore the error and continue with the search.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...