Im looking for suggestions on the best approach to handle the below.
The ask is, run my scripts for 200 instances. The only things that would change would be url and username and passwords
Does anyone know what would be the best way to accomplish this? I was hoping for some kind of loop.
You can achieve your goal by utilizing template feature: http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#test-templates
and passing lists with your url, username, password as a parameters
Related
just was wondering how could I update an app actually in use, so could not unistall it, so without losing data. Whats the best way? There is an automated feature for this?
Thanks
At the moment there is no automatic feature for this. This is something that can never be fully automated, because an app can be changed in so many ways 2sxc could never automatically figure out how to merge.
I'll try to write a guide some time, but in general there are three quick strategies: if only the views/templates changed, just replace them. If way more changed you could export-import the content-items from "old" to "new" - or you could export/import the schemas from "new" to "old"
i want to know how to send variables like Facebook.
ex: facebook.com/action-man.
here they will show actionman profile put i know how to send like this ex: facebook.com/users.aspx?user=actionman. so i want to know how to just send the username without the query parameter. thanks in advance
Use mvc routing engine. With MVC it is a must, so you should be already familiar with it.
If not, here you go:
http://www.asp.net/mvc/overview/controllers-and-routing
I am working with asp.net, i want some suggessions to implement search functionality with auto complete. Now i am using sql server as the backend in that i am retrieving 4 columns from three tables and sending those as parameters for searching. Now my problem is how to send those four fields at a time for sarching. And how to write the code for searching based ob those fields.
Please help me to solve this problem.
Thanks in advance...
Use AJAX Autocomplete
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx
Question is not very clear but what i can sugeest to get the best performance if data is not that huge you can cache data in async mode while page load and use ajax auto complete to give user best experience.
I have several pages in my drupal website that produce custom query strings. The query string values and aliases I want to use are referenced from a MYSQL database.
I've seen examples for this in Drupal 5 using the custom_url_rewrite function but not in 6... can somebody provide me with an example of how to do this?
Thanks
It's not clear to me exactly what it is you want to do, but the function you reference, has been divided into two functions in Drupal 6: custom_url_rewrite_outbound() and custom_url_rewrite_inbound().
I don't hope you will use the url run queries against your database, that can quickly become a gaping security hole.
The path module is part of core and does what I think you want, with a little coding. You may also find PathAuto will help you.
We got a long-running website where XSS lurks. The problem comes from that some developers directly - without using HtmlEncode/Decode() - retrieve Request["sth"] to do the process, putting on the web.
I wonder if there is any mechanism like HTTPModule to help us HtmlEncode() all the items in a Http request to avoid XSS to some extent.
Appreciate for any suggestion.
Rgds,
Ricky
The problem is not retrieving Request data without HTML-encoding. In fact that's perfectly correct. You should not encode any text until the final output stage when you spit it into an HTML page.
Trying to blanket-encode incoming parameters, whether that's HTML-encoding or SQL-encoding, is totally the wrong thing. It may hide XSS holes in your app but it does not fix them. You will still have a hole if you output content that hasn't come from parameters, or has been processed since then. Meanwhile the automatic encoding will fill your database with multiply-escaped & crud.
You need to fix the output stage, that's where the problem lies.
Like bobince said, this is an output problem, not an input problem. If you can isolate where this data is being output on the page, you could create a Filter and add it to the Response object. This filter would isolate the areas that are common output and then HtmlEncode them.