Selenium ide and need to get a table count after searching for a record - selenium-ide

Hi I am using selenium ide and need to get a table count after searching for a record. An example of the page is here.
After entering the name I want to search for I want to count the matching result records. I used getXpathCount to count the records but it does not seem to increment the counter variable.

You can do something like this in Selenium IDE-
storeXpathCount | //table[#id='example']/tbody/tr/td[contains(.//text(),'Edinburgh')] | myVarCount
echo | ${myVarCount}

Related

Why does T-SQL think a an item is a column name?

Note: I am just starting with SQL/T-SQL and I am not searching for a more elegant solution, just for a fix.
So I'm trying to use the Stack Exchange Data Explorer to count how many times a badge has been awarded. My query goes something like this:
SELECT COUNT(Id)
FROM Badges
WHERE Name = "Scholar"
The results should be the number of times the Badge has been awarded. It, however, returns this error:
Line 3: Invalid column name 'Scholar'.
Replace double quote to single quote
SELECT COUNT(Id)
FROM Badges
WHERE Name = 'Scholar'

Set Data Range on Filemaker after search

After searching on Filemaker, I get 100 search results. I would like to get last 10 record only. How do you set a script?
You can use the script step Omit Multiple Records and then enter the number of records you want to omit from the found set, counting from the active record.

Lookup in LibreOffice Calc to match partial string of the search criterion

I'm putting my banking information in a LibreOffice Calc spreadsheet.
I have columns as follows, that I imported from my bank account:
Date | USD | Description | Category
----------+-------+---------------------------------------------+----------
2/28/2019 | 44.00 | POS 0123 2345 123456 FRED-MEYER #02 | groceries
2/27/2019 | 2.50 | PANDA EXPRESS #123 TIGARD OR - 123546789012 | lunch
These descriptions are very unpredictable, they're whatever merchants want them to be, but they can tell me useful information about what I spent my money on. I've used this information to manually enter the categories. But I'm looking to automate this for common things.
So, I created a separate sheet with lookup values, like so:
Expression | Category
-----------+----------
FRED-MEYER | groceries
PANDA | lunch
I am looking for a formula in the "Category" column of the first sheet to automatically determine categories, based on the lookup table in the second sheet. (Obviously I don't plan for the lookup table to be exhaustive, but whatever I don't put in there, I can enter in the first sheet manually, thus overwriting the formulas.)
I had this working fine in Excel using a nifty construct of SEARCH and MATCH. (I don't even understand it anymore and I don't have Excel to check.) But since I'm now a Linux user, I'm trying to use LibreOffice, and I've not been able to make this work with formulas. I tried SEARCH, MATCH, LOOKUP, VLOOKUP, FIND, with and without regexes and with different options on/off. But no success so far.
I think this is very similar to this question, though it was only answered for Excel (I'm using Calc).

How to verify Specific field is not empty in a table which is updating frequently using Selenium IDE

I have table which is frequently updating and all the values may change when an update comes to the table. i want to verify whether specific columns have values or not.
Table has four comuns
You should first identify the cells. Ideally with xpath:
//tr[1]/td[1]
where numbers will point to row for tr tag and column for td tag. If you have more tables on the page, use more specific xpath:
//div[contains(#class,'commodities')]/descendant::tr[1]/td[1]
then it is good to store text of the cell to a variable and compare it to what you want
storetext | //tr[1]/td[1] | textVar
then you can compare if there is an empty string, for example
verifyEval | storedVars['textVar'].length > 0 | true
and this will fail the test if there is no value or pass the test when there is some value.
or you can each result echo to the log by storing the result and echo it as true/false.
storeEval | storedVars['textVar'].length > 0 | isThereAValue
echo | Is there a value? ${isThereAValue}
which will echo true or false.
Question is, what you want to do with the value if there is something. If you want to do different steps, then I can recommend to you to use Selblocks for Selenium IDE, which will allow to process conditions and cycles or the Selenium WebDriver. Then you can process different part of your test based on the content of the table. I can imagine, you can process whole table in the cycle for each row at once.
I can add some hints if you question will be more specific.

Find a word inside text file using Pentaho Kettle/Spoon/PDI

I am creating a Data Comparison/Verification script using SQL and Spoon PDI. We're moving data between two servers, and to make sure we've got all the data we have SQL queries showing a date then the quantity of rows transferred.
Example:
Serv1: 20150522 | 100
Serv2: 20150522 | 100
The script will then try to union these values, and if it fails we'll get a fail email. However, we wish to change this setup to write the outcome to a text file, and based on that text file send either a pass or fail email.
The idea behind this is we have multiple tables we're comparing, so we wish to write all the outcomes of each comparison (eight) to a text file and based off the final text file, send the outcome - rather than spamming our email inbox if multiple steps fail.
The format of the text file we wish to have is either match -> send email or mismatch [step-name] [date] -> send email.
Usually I wouldn't ask a question if I haven't tried anything first, but I've searched everywhere on Google, tried the knowledge I currently have and nothing is going the way I wish it to. I believe this is due to the logic I am using.
I am not asking for a solution to this, or for someone to do it for me. I am simply asking for guidance along the correct path.
I would do this in a transformation where there are steps for each union where the result of each step is the comparison_name and the result. This would result in a data set at the end that looks something like this:
comparison_name | result
Union A | true
Union B | false
Union C | true
You would then be able to output those results to a text file in another step to get your result file to sent out regardless of whether the job passed or failed.
Lastly you would loop through the result row in the stream, and if all are true, you could do an email step to send out a "pass" email, and if one is false, send out a "fail" email.
EDIT:
To get the date of the pass or fail you could either get the date from each individual union query result by adding it to the query like so:
SELECT CURRENT_DATE
Or you could use the Get System Info step in spoon which has multiple ways of injecting the current date into the data stream. (system date fixed, start date range of the transformation, today 00:00:00, etc.)