Search found 63 matches

by Niroj@Work
Wed Apr 07, 2010 6:06 am
Forum: Technical / Scripting
Topic: Capture string in between two given string
Replies: 20
Views: 17823

It will not work as %CRLF% may come any number times .. I just saw this. If you're saying that %CRLF% may appear any number of times inside a set of braces { } then we'll need a different approach. This one will be challenging to do with only RegEx... any other ideas anyone? As I mentioned this I a...
by Niroj@Work
Wed Apr 07, 2010 5:23 am
Forum: Technical / Scripting
Topic: Capture string in between two given string
Replies: 20
Views: 17823

There is some problem with RegEx command itself. Few days back I raised the issue with RegEx when we are matching a string containing curly braces. http://www.mjtnet.com/forum/viewtopic.php?t=5861&highlight= As curly braces are used for complex evaluation in macroscheduler it is creating problem. Pl...
by Niroj@Work
Wed Apr 07, 2010 4:18 am
Forum: Technical / Scripting
Topic: Capture string in between two given string
Replies: 20
Views: 17823

It will not work as %CRLF% may come any number times ..
by Niroj@Work
Tue Apr 06, 2010 10:18 am
Forum: Technical / Scripting
Topic: Capture string in between two given string
Replies: 20
Views: 17823

Bad coding

The below way I tried and replace the same at the end. But not able to replace at the same position. Whenever I am replacing {...} with _RPL_ME_ and later in the loop trying to replace the 1st occurrence I am getting absurd error. ====================== Program to Replace the same at the End: ======...
by Niroj@Work
Tue Apr 06, 2010 9:11 am
Forum: Technical / Scripting
Topic: Capture string in between two given string
Replies: 20
Views: 17823

I have different scenario where I need to replace the new line characters between two specific group. For Example: Let>str=abcd %CRLF% hhjh jhj {select hgh %CRLF% hh=!3j h %CRLF% jh ? }jdjk jdkj jkj %CRLF% {nb bb hjdh %CRLF%%CRLF% nb jkj}%CRLF% I need to replace all the new line characters between t...
by Niroj@Work
Tue Apr 06, 2010 8:21 am
Forum: Technical / Scripting
Topic: Capture string in between two given string
Replies: 20
Views: 17823

Thanks buddy! This is quite useful
by Niroj@Work
Tue Apr 06, 2010 4:07 am
Forum: Technical / Scripting
Topic: Pass parameters to a macro/exe and run in the backend
Replies: 2
Views: 4158

Thank you again...
This is just a scenario I mentioned..hence used the variable %k% for an example.

I will check as you said..
by Niroj@Work
Mon Apr 05, 2010 1:17 pm
Forum: Technical / Scripting
Topic: Pass parameters to a macro/exe and run in the backend
Replies: 2
Views: 4158

Pass parameters to a macro/exe and run in the backend

Hi, I need to create a Macro/exe which will get its value passed from another script. Could you please explain the steps for the scenario as given below: The called Exe:mac_chk.exe ============== //Value of "k" need to be passed from Parent exe... Repeat>k Add>k,1 WriteLn>%flle_nm%,RES,%k% Until>k=1...
by Niroj@Work
Thu Apr 01, 2010 6:54 am
Forum: General Discussion
Topic: Array Details arr[1] and arr_1 difference?
Replies: 1
Views: 3562

Array Details arr[1] and arr_1 difference?

Hi,

I have some doubts about array type in Macroscheduler.
1) Can we initialize an array as NULL in one line?

2) While accessing array what we are going to use?
E.g. arr[1] or arr_1?

Can you please differentiate between:
Mdl>Arr[1] and Mdl>Arr_1

In macroscheduler both the syntax are being used...
by Niroj@Work
Thu Apr 01, 2010 6:14 am
Forum: Technical / Scripting
Topic: Capture string in between two given string
Replies: 20
Views: 17823

RegEx>%str1%(.+?)%str2%,%str%,0,,,1,$1,Val

Mdl>Val

Why this is not working?
by Niroj@Work
Thu Apr 01, 2010 6:02 am
Forum: Beginners
Topic: playwav> in background of script?
Replies: 4
Views: 5852

Can we do the same after creating Exe?
by Niroj@Work
Thu Apr 01, 2010 5:56 am
Forum: Technical / Scripting
Topic: Capture string in between two given string
Replies: 20
Views: 17823

Capture string in between two given string

Hi, I need to capture a string between two given string using RegEx command. Let>str1=ABC Let>str2=ZZZ Str2 may vary like "|" or "ZZ" r anything as user want. Now, Let>str=sshshcg ABC hghdg hgs 123 ZZZ hgshd gghgh hg ZZZ gchh In the above string str, "ABC" is unique but "ZZZ" can occurs more than on...
by Niroj@Work
Wed Mar 24, 2010 12:30 pm
Forum: Technical / Scripting
Topic: Running the automated testing in background?
Replies: 5
Views: 17907

Thanks Marcus for your quick reply.
Sorry for posting this question here. Actually, as you suggested to use the third party SSH tool; I tried it in this way and hence posted it here.
by Niroj@Work
Wed Mar 24, 2010 12:06 pm
Forum: Technical / Scripting
Topic: Running the automated testing in background?
Replies: 5
Views: 17907

Getting IO Error 32!! While doing SFTP using WinSCP

Macro Script ================ IfFileExists>C:\Documents and Settings\niroj_p\Desktop\crt_ea.txt DeleteFile>C:\Documents and Settings\niroj_p\Desktop\crt_ea.txt Endif RunProgram>"C:\Program Files\WinSCP\WinSCP.exe" /script="C:\Documents and Settings\niroj_p\Desktop\getscript.txt" Label>Cont IfFileExi...
by Niroj@Work
Wed Mar 24, 2010 5:05 am
Forum: Technical / Scripting
Topic: Running the automated testing in background?
Replies: 5
Views: 17907

Running the automated testing in background?

Hi All, 1) Can we run automated test execution in the background and do other works? But here the execution needs to focus the application window under testing most of the time. 2) Can we hide the input while giving passwords? Like: Input>Enter the password?,pass Where while entering the password sh...
Sign up to our newsletter for free automation tips, tricks & discounts