Hi Azhar,
              Sorry for late response.

Thanks Azhar...

I ll check your valuable inputs.As of now,function/action return the
Pass/Fail status while execute it and store in datatable and finally export
into excel.

Logics :
                       Path of excel sheet,
                       Import the excel sheet,Add the data tables
                       Verify the "YES" status which is represent for
scenario in 'Test Scenario' sheet
                               if it is present and then get the Test case
id and compare with Test case id in 'Test Case' sheet.
                       Get the function which is represent as Keyword when
both test case id are same.
                       Do the process in application.
                       Return the status of the function and store in
datatable.


Sample for code :
                      Case "Login"
                      TC_Result=Call Login(Usr,Pwd)
                      datatable(Columname,Sheetname)=TC_Result
                      If TC_Result="Fail"
                      Exit Do
                      else

Note : few line of code between select case.



Thanks,
Saravanan U



On Aug 24, 2017 1:33 PM, "Syed Azhar Hussain Rizvi" <[email protected]>
wrote:

> Hi Saravanan,
>
> I stumbled upon this group chat and your question. I wonder If you its too
> late to answer your question.
> I will try something like this :
>
> * Okay, so we have a function library where I have stored/kept all my
> (600+) functions. let the file be a text or vbs
> * Now, I do have test script file as well where I have my driver script
> residing and deep inside there my compiler swims deep into those ocean of
> SWITCH CASES to find
>   appropriate function_NAME and execute further.
>
> --> Write a separate code batch file / VBS and integrate that into your
> code.. as basic sanity check before the actuat execution of your framework
> begins.
>    Let me introduce excel in between ( though it was not needed but it
> will make things easy for maintenance)
>
>  1)  Open an Excel --> List down all the function names that you have in
> your VBS file  ( This will be your SEARCH string  And don't worry its a one
> time activity)
> ------------------------------------------------------------
> -------------------------------------
> Function Name Function library status (File1)
> Framework code status (File2)
> -------------------------------------------
> Login() --------------------------
> TRUE ------------------------------
> FALSE
> f1() TRUE TRUE
> f2() FALSE TRUE
> f3() TRUE TRUE
> 2)  Write a macro which  Reads the  Function name from Excel and searches
> the string in each of your files and update the string match status as true
> or false.
>    --> You can loop into array of this files (File1,File2)  and within
> them you can write rest of the logic...
>   ---> Update the status of string match.
> This will actually help you in both ways.. in case if someone changes the
> base code as well , you will come to know...
>
> 3) S0, you can set a boolian logic for the entire execution... and if and
> only if all functions searched are TRUE... then, Return TRUE/Fit for
> execution
>    Else log error and display an error message to correct the files.
>
> Hope this helps.
>
> Note:  I have 7+ years exp. in IT, 5 years into QTP, I was working in a
> banking company in Bangalore. right now am JOBLESS,
>           If any of you have opening in QTP/UFT please help me out.
>           You can reach me at [email protected]
>
>          If the date when you are reading this post is after 3 Months of
> the comment posted here, then consider this as junk.
>
> Regards,
> Azhar
>
> On Saturday, April 22, 2017 at 12:03:49 PM UTC+5:30, saravanan u wrote:
>>
>> Hi Friends,
>>  I have more than 600 functions in our products and It ll be add in
>> future due to enhancements .As of now, the 600 function are using in the
>> driver script of the hybrid framework.
>> My queries, is there any option to separately using the function in
>> driver scripts and also no need to editing in driver script.
>>
>> We design the hybrid framework below structures :
>>  1.Import the excel sheet
>>  2.Read  the test case id
>>  3.Read the keyword if it is need.
>>  4.Execute the function using select cases.
>>  5.Update the status of function.
>>  6.Export the sheet.
>>
>> Thanks in advance.
>>
>> Regards,
>> Saravanan
>>
>> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to