I have a .txt file called "service-config" that looks like the below:
ServiceName=my-service
ServiceVersion=2.0.4
ToolsAccountNumber=3219684321
SharedAccountNumber=6843219687
NumberOfEcsTasks=2
I need a way to automatically increment the service version by 0.0.1 so when I run this solution the version will go to 2.0.5.
What would be the best way to achieve this?
Thanks.
Related
I am using this command in protractor to undo the text inserted in a certain element. However, it is not working because the text is not undone. Why?
The command used is:
hotkeys.trigger('mod+z',{targetElement: $(properties.homePage.editableText)});
Thanks in advance.
I think you should try protractor-hotkeys package here, As it will help to execute same code on different os. Let me know if you need any sample for this.
also you can refer Question
Situation:
I want to train and simple configure the retrieve and rank service.
I just uploaded some PDFs and now I want to upload some questions.
In the documentation I do not find a simple information how the csv file must be structured and which are the must fields and which are not must files.
Something like: "[YOUR QUESTION (MUST)]",[DOCUMENT ID (MUST)], [RANKING (OPTIONAL)]
The document ID you will find in xyz in section xyz.
Inside the help I can not find such kind of help.
https://www.ibm.com/watson/developercloud/doc/retrieve-rank/training_data.shtml#script
Impact:
There is no chance to get a "real" documentation of the configuration outside the tutorial.
Possible Solution:
Provide additional documenation.
Maybe I was not able to find it and someone can guide me to the right place?
Ok, I found the solution for me, by try and error. Following steps do work for me:
1) You need a plain text file and the ending should be *.txt
2) Inside the file you have to write your questions like this:
What is the best place to be?
Why should I travel to the USA?
-> Don't do it like
"What is the best place to be?"
For me the help was missleading, because saying something about CSV files.
You can take a look also in the comment of #dalelane he is right, and highlight the entry text for the upload of the file.
I have values in file:
en-us, de-de, es-es, cs-cz, fr-fr, it-it, ja-jp, ko-kr, pl-pl, pt-br, ru-ru, tr-tr, zh-cn, zh-tw.
how can I get this values for one request?
I want to create a query that takes the value of these in turn and writes the variable
This scenario can be achieved using Jmeter component "CSV Data Set Config"
Please refer to below mentioned link:
Jmeter CSV Data Set Config
Hope this will help
Can't comment, not enough karma. In response to above questions your path is probably wrong. If you use a debug sampler to show what path the CSV reader is taking I think you will find it is looking at something like C:/Jmeter/C:/path/to/CSV/file.
Another option for completing this is to use inline CSVRead. In your HTTP request use code like this -
${__CSVRead(etc/filters.csv,0)}${__CSVRead(etc/filters.csv,next)}
etc/filters is the RELATIVE path from Jmeters active running directory. In my case this evaluates to
C:/git/JmeterScripts/etc/filters.csv
In either case, I am sure your problem is that Jmeters active running directory is not what you think it is. I have had this problem several times with the same error.
I am under Windows and I am using Sublime2 Text Editor (i can download and use any other software) or PHP script.
Now, I am searching for solution to advance merge two files (or lines at one file, no matter). KEY - is the same part of two files
sourcefileone.txt:
KEY|CCC
sortcefiletwo.txt
KEY|BBB
Need to merge and receive this:
KEY|BBB|CCC
Any Solution? thanks
seems there is no ready solution. To solve the problem I already wrote php code that load to files in array, than explode them and merge in the new format at new array.
i am going crazy over this and i'm tired of searching - could someone please explain to me, how i can avoid the default namespace of doxygen, which seems to be the base input folder.
Here you can see what i mean: http://trac.sevo.org/doxyvb/html/_v_b6_module_8bas.html
The package "ClassicVB" is only named so, because it's the name of the folder in which this file is in. But is there any way to specify, to which package or namespace a specific file belongs?
You see, if i generate a documentation, i would like to state #namespace inside my .bas file and doxygen should then use this as the namespace of the included functions inside this file. But instead it is using the name of the folder, in which my .bas file is in.
Maybe i am just doing it wrong, but i spend the last couple of hours with this, i'm grateful for any help on this matter!
I had to deal with the same and I managed this way. Go to Doxygen GUI:
Expert->Project-> Set FULL_PATH_NAMES to NO
I think this will be enough. If not let me know. When you change something in Doxygen to not-default it becomes red, so I can quickly check all the boxes I have changed.