jade nesting and nodejs - node.js

I'm trying to find a better way to express this in jade:
p.author.alignleft
| Posted by
| admin
| in
| Uncategorized
The above works, but i'm wondering if there is a way to do it without using the tags. I can't seem to make it work any other way than what is above. NB, the word "admin" and "uncategorized" are actually a href's. I gave up trying to get it to display right in this question.

p.author.alignleft Posted by
a(href:'#') admin
| in
a(href:'#') Uncategorized

Related

webdriverio cucumber outline // play all scenarios even if one is having a failure

I am using an outline examples in my test,
something like :
Feature: feature name
Scenario Outline: outline scenario
Given I go to
When I click on button
Then I should have
Examples:
| website | title |
| google | google welcome|
| yahoo | yahoo welcome |
| Astalavista | altalavista hello I m dead |
so far it is great !!! but if the first one is doing okay and the second one is having an issue the third is not played ...
do you know how to continue all the test in case of outline scenario ?
thanks a lot for your help !
There is something called failFast in the cucumberOpts.
If the value is true then it means fail at the first failure and do not proceed.
If the value is false then the execution will continue for all the scenario in the feature file even if one scenario fails.
So try by making it as false.
Thanks,
Naveen

How to use s skalar stored in 'let' in a where clause with '!contains' in Kusto Query Language

I have a problem which bothers me even though i think the solution must be super simple.
I have to build a query with Kusto Query Language for my Azure Analytics log analyzer metric.
I want to make this script working for the latest app version and for the second latest app version.
This is the query code to get the latest app version as a skalar.
customEvents
| where client_OS contains "Android"
| summarize max(application_Version)
Now my understanding would be, that i could store this in a let and use it later on to get the second latest app version like this:
let latestVersion = customEvents
| where client_OS contains "Android"
| summarize max(application_Version);
customEvents
| where client_OS contains "Android" and application_Version !contains latestVersion
|summarize max(application_Version)
But unfortunately the compiler wont let me use a skalar with !contains. I have to use a string.
Is there any way for me to make string out of this, so i can use it?
Or do you have any other good way to retrieve the second highest value from application_Version column?
I created this according to how i would do it in SQL, but it seems that Kusto is a bit different.
I hope you can help me fixing this and enlighten me and enhance my Kusto skills.
Best regards,
Maverick
latestVersion is not a scalar. To make it scalar, you have to surround it with toscalar(...).
In any case, if you want to find the top 2 items, there's a much more efficient way to do it:
customEvents
| where client_OS contains "Android"
| top 2 by application_Version desc

How can I display multiple line scenario text in extend reports?

In my feature file, using the same scenario I am checking more than one requirements. I have written the scenario like below:
Scenario: My first requirement ID
My second requirement ID
My third requirement ID
Etc
After execution, the extend report shows only the result as
Scenario: My first requirement ID
How can I get all the three I D,s in extent report.
NOTE:Each of my scenario title is lengthy.
Can you explain your scenario text a little bit more? According to the documentation, the scenario should describe in human terms what we expect the software to do. It is quite unusual to include expected data in that scenario text. Are you using the ID from an enum? If that is the case, it would be better to spell out the enum in human readable terms. Scenario: UserType is Administrator for example. Another option would be to use a Scenario Outline, something like
Scenario Outline: My generic requirement statement
Given Id <whateverId> is provided
When I do <activity>
Then I expect to see <result>
Examples:
| whateverId | activity | result |
| 12 | firstMethod | MyResult |
| 20 | secondActivity | anotherResult |
| 42 | thirdExample | thirdResult |
The variable names provided in the outline in angle brackets become the column headers in the examples grid. Just be sure to indent the grid below the Examples: line and also include the pipe | on both the left and right boundaries of the grid. Hopefully that helps.

How to make mariadb 10 make full use of a multi-core processor?

I'm using mariadb 10,in the official document only mentioned the 5.x version.I tried using thread_pool_min_threads but didn't work at all,It only shutdown and left a message said "Unknown variable" in the event log.
You did not mention your platform. thread_pool_min_threads does not exist on Unix variations (as also pointed out in the official document). It is Windows-only variable.
If I list threadpool related variables on 10.0.3, on Windows, I get
mysql> show variables like 'thread_po%';
+-------------------------+-------+
| Variable_name | Value |
+-------------------------+-------+
| thread_pool_max_threads | 500 |
| thread_pool_min_threads | 1 |
+-------------------------+-------+

Is it possible to use 2 different examples table in Cucumber/Cuke4Duke

Is it possible to somehow construct a Scenario which uses two different Example tables in different steps? Something like this:
Given I log in
When I view a page
Then I should see <goodText>
Examples:
|goodText|
|abc|
And I should not see <badText>
Examples:
|badText|
|xyz|
The scenario above doesn't work, also in reality there would be more rows to each table.
It looks like you're confusing tables with scenario examples. You can mix them, but from your example I'm not sure what you're trying to achieve. Why not just write:
Given I log in
When I view a page
Then I should see "abc"
But I should not see "xyz"
or if you wanted to check for multiple strings:
Given I log in
When I view a page
Then I should see the following text:
| abc |
| def |
But I should not see the following text:
| xyz |
| uvw |
You say that in reality there would be many more rows to the table; but of course a table can also have many columns.
Would this not work for you?
Given I log in
When I view a page
Then I should see <goodText>
But I should not see <badText>
Examples:
|goodText| badText |
|abc | xyz |

Resources