Idassamed Posted August 10, 2018 Author Report Posted August 10, 2018 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. Quote
vendettaa Posted August 10, 2018 Report Posted August 10, 2018 I have idea on this but am not into testing Quote
vendettaa Posted August 10, 2018 Report Posted August 10, 2018 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 Quote
Idassamed Posted August 10, 2018 Author Report Posted August 10, 2018 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. Quote
Idassamed Posted August 10, 2018 Author Report Posted August 10, 2018 Just now, vendettaa said: Telidu Ok Quote
Amrita Posted August 13, 2018 Report Posted August 13, 2018 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? Quote
Spartan Posted August 13, 2018 Report Posted August 13, 2018 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 Quote
Spartan Posted August 13, 2018 Report Posted August 13, 2018 i think this is the soultion u r looking for.. @Idassamed Quote
Idassamed Posted August 13, 2018 Author Report Posted August 13, 2018 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. Quote
Idassamed Posted August 13, 2018 Author Report Posted August 13, 2018 7 hours ago, Spartan said: i think this is the soultion u r looking for.. @Idassamed Will try baa, thanks. Quote
Idassamed Posted August 13, 2018 Author Report Posted August 13, 2018 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. Quote
former Posted August 13, 2018 Report Posted August 13, 2018 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. Quote
Amrita Posted August 13, 2018 Report Posted August 13, 2018 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? Quote
Idassamed Posted August 13, 2018 Author Report Posted August 13, 2018 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.