In TestCafe how to do I write text to the report? - testcafe

I am using gherkin_testcafe with testcafe-reporter-cucumber-json - this has already been setup and being used.
I want to be able to write text (and be able to attach screenshots) to the report; which then gets processed by the multiple-cucumber-html-reporter.
When using wdio/cucumber etc I was able to use .attach("my text"); which would add the text to the step info. However, I just cant seem to find how to do that within testcafe.
Anyone with a solution?

Related

PhpStorm combine multiple Predefined Live Template functions

I have a project where my files are in "lisp-case" (hyphen delimited) and I would like to use the filename as a variable in a live template, but it must be converted to CamelCase first.
I found out that you can set the expression fileNameWithoutExtension() under "Edit Template Variables" and there is also a function called camelCase() which should be able to turn my filenames into CamelCase. But I cannot figure out how to combine those two. I tried doing camelCase(fileNameWithoutExtension()) but that does not work, unfortunately.
Is it possible to achieve this some other way?
camelCase(fileNameWithoutExtension())
It's a correct syntax.
Is it possible to achieve this some other way?
Please ensure that Skip if defined checkbox is checked for this variable.
If I try to wrap fileNameWithoutExtension() inside camelCase() and press enter to save the entry the window is closed but the change is not saved
It's an IDE bug (https://youtrack.jetbrains.com/issue/IDEA-132965 -- supposed to be fixed in current 2017.1.x version).
In any case: either press Enter before leaving the field ... or click on OK button straight away (you may then reopen this window to do further changes).
Also, when editing the field it's rendered like a select box which is kind of weird. Maybe it's a bug in this specific version. I'm on PhpStorm 10.0.4 for Mac.
Not a Mac user here .. but it is an editable drop-down box indeed (it lists all possible functions).

How would i create a second sidebar in Sublime text

What I want is to have a second sidebar that will show me three lines of the text of the file, which will save me having to open it.
This is a feature that Evernote has:
The area pointing to "snippets" is the feature that i want. I would find it so helpful if Sublime had this.
I have searched and I am fairly sure this doesnt exist. So I am wanting to make it myself. So here are my questions;
Which file ultimately governs the existence of the existing sidebar?
Would this be a package or a plugin? (Im guessing package), and if it is a package, would it be default or user?
Is it actually possible to have a second sidebar (or similar), and if so how can i get it to sit to the right of the existing sidebar?
Any other advice on how to go about creating this would be much appreciated.
Thank you.
I'm not sure if creating another sidebar is possible nor have I seen any package to do so.
On the other hand, you can do alt+shift+2(set_layout) I don't know what the buttons are for OSX. You can find it in Default keymap settings. You can copy that to user keymap, edit the arguments values and bind it to whatever keys you want.
What it will do, is create another window in sublime where you can open other tab with data you wish to have in there.
Example:
You can also use alt+shift+number, to create more than 2 windows with up to 4. If you wish to do the windows in horizontal position, you can use number 8 and number 9.

FileMaker 13 GetThumbnail Anomaly?

I have a container field named tempImage, set to have a calculated value of:
GetThumbnail(tempImage; 500; 500)
However, when I drag a larger size image into that field, the image does not get resized.
How can I fix this?
Note: The "Do not replace existing value of field (if any)" checkbox is unchecked. Here is a link to a video showing the anomaly.
I don't have a specific answer, but will offer a method to debug this.
Instead of dropping the image into the container, write a script that is triggered by the OnObjectModify that sets another container field using the GetThumbnail() function.
In so doing, you will be able to run the debugger and see if an error is generated by the script. That will give you more information to post here if you have not solved this already.
Reference information:
http://www.filemaker.com/help/12/fmp/html/func_ref1.31.14.html
Here is a detailed blog post about this function:
http://hbase.net/2013/07/11/resizing-images-in-filemaker-pro-12/`

Why is my website going blank everytime I edit a row in Wp_options?

I have a wordpress theme and I am trying to change a bit of text that I can only really find in the database. It's a bit of title text that I can only find in the wp_options database.
I found the bit of text I need to change in wp_options, in a row under "of_options"
...";s:16:"translation_port";s:16:"Recent portfolio";s:23:"translation_relatedpost";
s:7:"Related"; s:27:"translation_advertise_title";s:28:"Our Nights";
s:20:"translation_morelink";s:9:"Read more";s:24:"port_project_description";s:20:
That above code does not have any breaks in it, I only changed it for ease of reading.
Just ran another test, and I dont actually have to change a single bit of text, purely opening the row for edit, then saving it without touching anything messes it up.
No logos, images, layout or anything shows. Only the background image :/
I have no idea, tried everything.
Any help would be appreciated.
Don't try to edit this field in the database.
What you see here is a serialized array.
'of_options' refers to 'Options Framework' and is an array containing all chosen options.
Look under Appearance for an options links. The values will be editable there. If somewhere else you need to add more info to your question for help to be provided.
Never fully read it.
Was a part in the theme edit menu to change the titles under a translation tab. My bad.

refreshing text input value in jqMobi

I have a text input within a custom footer. I am trying to update the text using:
$("#navbar #segment").val("blah");
I have also tried
$("#segment").val("blah");
both return objects, but neither show an updated text input. The footer the input belongs to is not shown at the time, and I think this might have something to do with it since performing the same actions works when the panel is displayed. I have also tried adding $.ui.updateNavbarElements($("#navbar #segment")) after each call and it throws an error.
Also, what is the difference between the jq.web.min.js included in the appMobi XDK and the jqMobi script located on the CDN? Are they they same, and just the CDN is the latest?
I was correct in assuming that changes are only reflected if the element is showing.