Can we compare value of a field in 2 different urls using Selenium? - selenium

I know we can capture the value of a field for each url individually. But is it also possible to compare the value captured for the same field in 2 different urls using Selenium tool for validation?
I searched over the web but did not get any conclusive results. Please advice.

Yes it is possible to compare the value of field from two different URL's
1). Visit the First URL-> Read the field value and store it in a Variable
2). Visit the Second URL -> Read the field value and store it in a variable
3). Compare the Values

Related

SSRS search text box (parameter) dependent dropdown lists cascading filter - SQL Reporting

I am having a situation where I can't proceed further with my report.
I have 2 parameters and the first parameter is a search text and user allowed to enter multiple search values and then the second parameter will get loaded and in the dataset to get loaded.
ReportParameter1 - user should give text need to be search. It should allow multiple values.
ReportParameter2 - (Multi Selection dropdown) - If we pass single value in ReportParameter1 it is showing related dropdown list in ReportParameter2. If multiple values are given in ReportParameter1 it should load all the values in ReportParameter2 related to the search words but it is not returning any dropdownlist.
Any help will be highly appreciated and I hope the explanation make sense?
Thanks,
For passing one parameter:
passing multiple values:
You'll need to use the IN operator for multiple parameter values.
SELECT party.party_name
FROM apps.hz_parties party
WHERE UPPER(party.party_name) IN(:ReportParameter1)
The other option would be to filter the tablix.
Note: Report processing time will be longer for a tablix filter.

How can I map each specific row value to an ID in Pentaho?

I’m new to Pentaho and I’m currently having an issue with mapping specific row values to an ID.
I have a data file with around 30 columns, one of which is for currencies (USD, GBP, AUD, etc).
The main objective is to have the user select up to 8 (minimum of 1) currencies and map them to a corresponding ID 1-8. All other currencies not in the specified 8 will be mapped with an ID of 9.
The final step is to then output the original data set, along with the IDs.
I’m pretty sure I’m making this way harder than it should, but here is what I have at the moment.
I have created a job where the first step is to set the variables for my 8 currencies, selectionOne -> AUD, selectionTwo -> GBP, …, selectionEight -> JPY.
I then have a transformation to read the data from the file and use the copy rows to result step.
Following that I have a second job called for-each which is my loop for checking the current currency in the row.
Within this job I have two transformations, one called set-current, one called map-currencies.
set-current simply uses the get rows from result step (to grab the data from the first transformation). I then use the set variable step to set the current currency to the value in currency field. This works fine, as each pass through in the loop changes the current variable to the correct value.
Map-currencies is where I’m having the most issues.
The goal is to use the filter row step to compare the current currency against the original 8 selected currencies, and then using the value mapper step to map it to an ID, before outputting the csv file.
The main issue here, is that I can’t use my original variables in the filter or value mapper.
So, what I’ve done here is use the get variables step to retrieve the variables and named them: one, two, three, …, eight. This allows me to bypass the filtering issue, but they don’t seem to work for the value mapper, which is the all important step.
The second issue is that when the file is output it only outputs one value (because of the loop), selecting the append option works, but this could be a problem if the job is run more than once.
However, the priority here is the mapping issue.
I understand that this is rather long, and perhaps a tad confusing, but I will greatly appreciate any help on this, even if it’s an entirely new approach 😊.
Like I said, I’m probably making it harder than it should be.
Thanks for your time.
Edit for AlainD
Input example
Output example
This should be doable in a single transformation using the Stream Lookup step.
Text File Input is your main file, Property input reads your property file into Key and Value columns. You could use a normal text file with two columns instead of the property input.
Below are the settings of the Stream lookup. Note the default value "9" for records that are not found in the lookup stream.

Access - Field size for numerical field?

With text boxes, you can set field size on how many characters can be entered.
Is it possible to do this to a numerical field?
No.
What you can do is to apply a validation rule to your number field in the table.
Like:
Len([enter your field name here])<=4
Plus a validation message:
Number should be 4 digits at most
There's other option too like applying a Before Update event in your form that you use to maintain the data.
And another possible option might be to apply a data macro.
Can't help you on that one as my Access version is pretty old.
You could use the format property. Another option would be to treat the field as a text box and the format property. Then when you want to use the value numerically use the val function.

Multiple URL Queries including Text Fields and Dropdown List

I have to perform a search based on 3 queries in a single URL and so far i have achieved this
...Search.aspx?StartDate=1/9/2015&EndDate=1/9/2015
the third query which i want to include in the above URL is related to a Drop-Down List containing 100 plus options.
code
How should i write the URL to get the required option.
Why can't you do something like Search.aspx?StartDate=xx&StopDate=YY&options=selected1,selected2,selected3 ?

How to filter a Sharepoint List Column with a Textbox Control Value using a "Contains" query?

I'm using a data view to display a list (Sharepoint 2010) that has several columns including one that has a Name column. I've provided the user with a text filter on the page to send values to filter the Name column in this list. The problem I'm facing is that the filter only works for exact matches and not partial matches.
I tried to overcome this problem by using Sharepoint Designer to:
create a parameter that uses the textbox control value.
Filtering the Name column with this parameter and setting the comparison to "Contains"
Unfortunately if the default value of the Parameter is blank, the list does not display any data. If the default value of the parameter is set to part of a name in the list, the list displays names that contain that string. However, when changing the value in the text box and searching, the list does not return results. Please let me know if you guys know how to fix this. Any help is much appreciated and let me know if you need any additional information. Thanks!
Managed to find a solution to my problem. I used a custom javascript solution designed by jvossers (http://instantlistfilter.codeplex.com) that involves the list being filtered instantly much like Google's search!
The only downside of this solution is that it only filters the items currently displayed on the screen. Therefore, if you have a data view web part which limits the amount of items displayed on the page, this solution won't help you. In order to facilitate this solution, display all the row items on the page (by increasing the item limit per page to a larger number than your total list rows) and then add this code into a content editor web part on the same page. Worked brilliantly for me. '
By the way if you are using jQuery 1.3.x or higher, you should modify the script a little as described in the disscussion here: http://instantlistfilter.codeplex.com/Thread/View.aspx?ThreadId=49123