The following warnings occurred:
Warning [2] Undefined array key "extra" - Line: 100 - File: inc/plugins/google_seo/url.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 100 errorHandler->error
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 239 pluginSystem->load
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined variable $location - Line: 1250 - File: inc/plugins/google_seo/url.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 1250 errorHandler->error
/inc/plugins/google_seo/url.php 174 google_seo_url_hook
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 239 pluginSystem->load
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.2.18 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Trying to access array offset on value of type null - Line: 546 - File: inc/class_parser.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_parser.php 546 errorHandler->error
/inc/class_parser.php 580 postParser->cache_smilies
/inc/class_parser.php 195 postParser->parse_smilies
/inc/plugins/bam.php 329 postParser->parse_message
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined variable $announcements - Line: 2 - File: inc/plugins/bam.php(356) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/bam.php(356) : eval()'d code 2 errorHandler->error
/inc/plugins/bam.php 356 eval
/inc/class_plugins.php 142 bam_announcements
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 201 - File: inc/plugins/gomobile.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/gomobile.php 201 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "gomobile" - Line: 214 - File: inc/plugins/gomobile.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/gomobile.php 214 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "gomobile" - Line: 275 - File: inc/plugins/gomobile.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/gomobile.php 275 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 280 - File: inc/plugins/gomobile.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/gomobile.php 280 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "fid" - Line: 2275 - File: inc/plugins/mysupport.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/mysupport.php 2275 errorHandler->error
/inc/class_plugins.php 142 mysupport_notices
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "fid" - Line: 2277 - File: inc/plugins/mysupport.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/mysupport.php 2277 errorHandler->error
/inc/class_plugins.php 142 mysupport_notices
/global.php 100 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.2.18 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 749 - File: global.php PHP 8.2.18 (Linux)
File Line Function
/global.php 749 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 889 - File: global.php PHP 8.2.18 (Linux)
File Line Function
/global.php 889 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 889 - File: global.php PHP 8.2.18 (Linux)
File Line Function
/global.php 889 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $metadescription - Line: 2 - File: global.php(953) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/global.php(953) : eval()'d code 2 errorHandler->error
/global.php 953 eval
/printthread.php 16 require_once
Warning [2] Undefined variable $metakeywords - Line: 3 - File: global.php(953) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/global.php(953) : eval()'d code 3 errorHandler->error
/global.php 953 eval
/printthread.php 16 require_once
Warning [2] Undefined variable $unreadreports - Line: 54 - File: global.php(956) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/global.php(956) : eval()'d code 54 errorHandler->error
/global.php 956 eval
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 56 - File: global.php(956) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/global.php(956) : eval()'d code 56 errorHandler->error
/global.php 956 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 298 - File: inc/plugins/gomobile.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/gomobile.php 298 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcefooter
/global.php 1250 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key 1984 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1412 google_seo_url_cache
/inc/functions.php 6093 google_seo_url_thread
/printthread.php 124 get_thread_link
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 3377 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1347 google_seo_url_cache
/inc/functions.php 5978 google_seo_url_profile
/inc/functions.php 6046 get_profile_link
/printthread.php 177 build_profile_link
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 581 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1347 google_seo_url_cache
/inc/functions.php 5978 google_seo_url_profile
/inc/functions.php 6046 get_profile_link
/printthread.php 177 build_profile_link
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 3405 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1347 google_seo_url_cache
/inc/functions.php 5978 google_seo_url_profile
/inc/functions.php 6046 get_profile_link
/printthread.php 177 build_profile_link
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 3446 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1347 google_seo_url_cache
/inc/functions.php 5978 google_seo_url_profile
/inc/functions.php 6046 get_profile_link
/printthread.php 177 build_profile_link
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.2.18 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 3135 - Line: 833 - File: inc/plugins/google_seo/url.php PHP 8.2.18 (Linux)
File Line Function
/inc/plugins/google_seo/url.php 833 errorHandler->error
/inc/plugins/google_seo/url.php 1347 google_seo_url_cache
/inc/functions.php 5978 google_seo_url_profile
/inc/functions.php 6046 get_profile_link
/printthread.php 177 build_profile_link



Micro Focus QTP (UFT) Forums
Data Table and descriptive programing - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Data Table and descriptive programing (/Thread-Data-Table-and-descriptive-programing)

Pages: 1 2 3


RE: Data Table and descriptive programing - laura - 06-24-2009

Ok,
Will ask the questions 1 at a time.
1) I have a link on a web browser, the object name that is recorded takes the name of whoevr is logged in. e.g if user 5, is logged in,, the link's name in the object spy will become user 5. if i now run the script and am logged in as user 7,, the script will fail as QTP name for the object has now changed to user 7. How can I reference this object so no matter who is logged in qtp can recognise the link?


RE: Data Table and descriptive programing - sreekanth chilam - 06-24-2009

Hi Laura,

Step1: Use "childObjects" Method & retrieve all links(link Count) in home page(After Login)

Step2: Use For Loop & retrieve all links "innertext" value one by one & use INSTR method to check whether the "Welcome" value is contained in Link's innertext. continue the loop till required link is found.

Step3: Once the required link is found, then use "split" method with delimiter as " " (no need of "Right" method) & get the user name & you can use anywhere.


Try to implemet the above & it can be done easily.


RE: Data Table and descriptive programing - laura - 06-24-2009

Thanks wil try that and let you know.


RE: Data Table and descriptive programing - laura - 06-24-2009

Tried but just kept getting syntax error.. can you help me with the code pls?? my code was
Code:
Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set Link = Browser("Help").Page("Help").ChildObjects(oDesc)
NumbrLinks=links.Count()
Lists(i)Selecti+1
Next.

Just got stuck here.
appreciate r help.
Thanks


RE: Data Table and descriptive programing - laura - 06-24-2009

Hi,
I have steps 1 and 2 working. For step 3 using the split function hwo do i split the innertext which is e.g Welcome User 10. to have just User 10.

Thanks


RE: Data Table and descriptive programing - sreekanth chilam - 06-25-2009

Hi ,

Lets consider the below example.

Code:
str="Welcome User 10"
x=split(str," ")              ' here x is created as an array.

find the ubound of Array x (say ubound(x)=3 i.e x(0),x(1),x(2))

x(0) will contain "Welcome"
x(1) will contain "User"
x(2) will contain "10"

Just concatenate the x(1),x(2) by using "&" operator as below
Username=x(1)&x(2)
here Username will contain "User10"

If you want a blank space to be included in username , then try as below.
Username=x(1)&" "&x(2)
here Username will contain "User 10"


You will get the "User 10"


Hope You would get it now ...Smile


RE: Data Table and descriptive programing - laura - 06-25-2009

Yes mate!! Thanks a mill.


RE: Data Table and descriptive programing - adikshit - 06-25-2009

Code:
Browser("micclass:=Browser").Page("micclass:=Page").Link("text:="Datatable("Menuitems",dtGlobalsheet")).Click

Code:
Browser("micclass:=Browser").Page("micclass:=Page").Link("text:= & Datatable("Menuitems",dtGlobalsheet)).Clic
k
Please note second solution is right


RE: Data Table and descriptive programing - QTPgrd - 07-01-2009

Can anybody please make this script working.........This is related to the issue discussed in this loop. This issue is with line #11

Code:
1. Browser("QTP Forums").Page("QTP Forums").Link("Login").Click
2. Browser("QTP Forums").Page("QTP Forums").WebEdit("quick_username").Set DataTable("UserName", dtGlobalSheet)
3. Browser("QTP Forums").Page("QTP Forums").WebEdit("quick_password").Set DataTable("Password", dtGlobalSheet)
4. Browser("QTP Forums").Page("QTP Forums").WebButton("Login").Click
5. Browser("QTP Forums").Page("QTP Forums_2").Link("User CP").Click
6. A = DataTable("UserName", dtGlobalSheet)
7. Msgbox (A)
8. Set oLink = Description.create
9. oLink ("name").value="&A"
10. Msgbox (A)
11. Browser("QTP Forums").Page("User Control Panel").Link(oLink).Click
12. Browser("QTP Forums").Page("QTP Forums - Profile of").Link("Log Out").Click

Any help regarding this would be greatly appreciated....

Thanks...........


RE: Data Table and descriptive programing - ritesh - 07-07-2009

Hi,

I feel u shud add few more property for 'oLink'. After #9 add a class property or html tag.
Code:
oLink("class").value="blablabla"
or
Code:
oLink("html tag").value="blablabla"

hope this works...