How to verify Specific field is not empty in a table which is updating frequently using Selenium IDE - 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.

Related

Crystal Report - Label Printing with a varied page counter

So, our branches are wanting shipping labels created which I have created a template on Crystal reports.
Our issue is using the NofM function. If the user prints one label it will say 1of1 which is correct. We want it so the counter is determined by the number of prints they require for example:
If the user prints 4 pages it will be 1of4 to 4of4.
Any assistance would be appreciated
In Field Explorer, expand 'Special Fields'.
Use the 'Page N of M' special field.
It sounds like you need a solution to duplicate the printing copies based on a parameter.
Option 1. if the max expected quantity is not too large, you can create multiple sections (Details a, Details b, Details c, ...) and use a dynamic suppress condition to hide the sections beyond the quantity parameter.
Option 2. Create a "REPEATER" table with a single column (How_Many) and rows for 1 | 2 | 3 | 4 | 5 | 6 | ...
Now, in your report, add the REPEATER Table and add a Record Selection condition of
{?QTY} >= {Repeater.How_Many}

Tableau - Find Null Values across Specific Dimension Values

Working in Tableau - My data set looks like this:
Filename Run Score
File1 Run1 80
File1 Run2 Null
File1 Run3 Null
File1 Run4 60
File2 Run1 70
I need to be able to filter the file data based on Nulls being in certain runs. My current plan is a calculated field being used as either a parameter or filter (or both):
IF $score_for{$file}{'Run2'} == Null && $score_for{$file}{'Run3'} == Null
THEN $file{'calc value'} = 1 (or 'null values in runs I care about')
Then I can filter all 1's out of the charts and look at the files that did work for runs 2 & 3.
I have a feeling I can do this using INCLUDE, but for the life of me I can't figure out how that works. I've watched their training video three times.
It looks like your end goal is to identify files that satisfy a condition - in this case, files with non-null values for the runs of interest. This is a good case for using Tableau sets.
There are alot of ways to think of sets: a named filter, a Boolean function defined for each data row, a mathematical set defined for members of some discrete field. I'd recommend something along the lines of:
Define the set of Runs of Interest -- right click on the Run field in the data pane in the left sidebar. Choose Create Set. Call it "Runs of Interest" and manually select the Runs that you want to belong to that set: Run2 and Run3 in your example.
Define the set of Files that Worked -- right click on the Files field, Create a Set. Name it "Working Files", and then instead of manually selecting set members, choose the Use All radio Botton an the TOP of the set dialog, and then choose the Condition tab to define the condition that distinguishes working files from the non-working files.
Enter a condition as a formula such as: MIN(NOT ISNULL([Score])) which will be satisfied for Files where EVERY data row has a non-null score. If instead you want files to belong to the set if ANY data row has a non-null score, then use MAX() instead of MIN().
Now that you have your Working Files set, place it on the filter shelf to restrict the viz to only working files. You can also use sets on the row/col shelves or in calculated fields. You can edit the Runs of Interest set as needed, and the Working File set will adjust

VSTS - Query Effort Column Not Displaying Values

I am putting together a query on VSTS and want to include the Effort column. I was able to do that but no effort values show up in the column. I do have Effort values entered into tasks. Not sure if it shows a task effort value or gets it from someplace else. Or there is a configuration that hides the values of the column (which would seem reasonable that they would not be selectable - if nothing will be shown).
Peter
That's the expected behavior.
Actually the Effort is a group of the fields, you need to add the specific column of the fields under it to display the corresponding values.
So, just include below columns in the query to display the values:
Original Estimate
Remaining Work
Completed Work

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

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}

SSRS Column Grouping Based on Row and Column

I've looked everywhere but found no luck and did some tinkering which didn't amount to much. I have a table that displays the following result set:
| Name | Value|
| Pat | 1.6 |
| Pat | 1.4 |
I have to group them in together by Row based on the first column (which is not a problem). Although I'm trying to make the report put the two numeric values in one cell in the Tablix.
This is what I need to do:
And this is what I have achieved
I achieved the third one by grouping it by the first column of my result set as a Row group.
Any nudge to the right direction will be very much appreciated!
Add a new tablix and add Name field in the Row Groups Pane, then delete details group.
In the Value cell use the below expression:
=join(LookupSet(
Fields!Name.Value,
Fields!Name.Value,
Fields!Value.Value,
"DataSetName"
),Environment.NewLine)
Replace DataSetName by the actual name of yours. You will get:
UPDATE: Expression to surround the second value with parenthesis.
=join(LookupSet(
Fields!Name.Value,
Fields!Name.Value,
Fields!Value.Value,
"DataSet4"
),Environment.NewLine & "(") & ")"
Let me know if this helps.